tx · 51UgGfvPVZdSSyTDTL4Lx7fofBV7sbH3UWTBGC6vHaVX

3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9:  -0.01400000 Waves

2021.08.17 16:17 [1662386] smart account 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9 > SELF 0.00000000 Waves

{ "type": 13, "id": "51UgGfvPVZdSSyTDTL4Lx7fofBV7sbH3UWTBGC6vHaVX", "fee": 1400000, "feeAssetId": null, "timestamp": 1629206295587, "version": 2, "chainId": 84, "sender": "3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9", "senderPublicKey": "D1X9WatF6ARMCmm3jC4Ex5Wd5VQ3LY8i1xbHNqeHqeAa", "proofs": [ "532WZQwPyHXK6eE7wJCFaQqPNE8L8AYxyeWMiCc99rWMEhCd2Tw9CBfvTKqywMo5M998sXRWweaj2ia37kqSYzQY", "AMwZQgUpimX5714Z4b1nw5FQWRRJYuDfeXjj6wF5jj92YWseL8pmKHWQWzj1FUC3e9uMjNXi4xw6aBvLy7BN8Nd" ], "script": "base64:AAIFAAAAAAAAABgIAhIECgIIARIAEgQKAggIEgQKAggIEgAAAAAaAAAAABBrZXlQb29sc0xpc3ROYW1lAgAAAAVwb29scwAAAAARa2V5UHJlZml4UG9vbE5hbWUCAAAABXBvb2xfAAAAABJrZXlQcmVmaXhQb29sSW5kZXgCAAAABmluZGV4XwAAAAASa2V5Q29uZmlybWVkQXNzZXRzAgAAABBjb25maXJtZWRfYXNzZXRzAAAAABBrZXlBc3NldFByaW9yaXR5AgAAAA9hc3NldF9wcmlvcml0eV8AAAAAB2tleVBhaXICAAAABXBhaXJfAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAF2tleU9yYWNsZVNjcmlwdEhhc2hDUE1NAgAAABBzY3JpcHRfaGFzaF9jcG1tAAAAABdrZXlPcmFjbGVTY3JpcHRIYXNoRmxhdAIAAAAQ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AABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgUAAAANc2lnbmVkQnlBZG1pbgkAAAIAAAABAgAAAAtNYXRjaCBlcnJvci1aR2o=", "height": 1662386, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6pjrHBkudAMVGvQvyHjT8ntztK3vEakdS5TjF4qGMPth Next: AY3Y6CCwR5ELMnXWxoo24tgCJhozJPY1kiWuAhndtspN Diff:
OldNewDifferences
9797 let userScriptHash = value(scriptHash(i.caller))
9898 let cpmmHash = getBinaryValue(keyOracleScriptHashCPMM)
9999 let flatHash = getBinaryValue(keyOracleScriptHashFlat)
100- if (if (if ((userScriptHash != cpmmHash))
101- then (userScriptHash != flatHash)
100+ let isNotCpmm = if ((userScriptHash != cpmmHash))
101+ then true
102+ else false
103+ let isNotFlat = if ((userScriptHash != flatHash))
104+ then true
105+ else false
106+ let isNotEmptyData = if ((!(check) == true))
107+ then true
108+ else false
109+ if (if (if (isNotCpmm)
110+ then isNotFlat
102111 else false)
103112 then true
104- else !(check))
113+ else isNotEmptyData)
105114 then throw("Unexpected script was found.")
106115 else {
107116 let possiblyAlreadyAddedPool = getString(this, keyName)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let keyPoolsListName = "pools"
55
66 let keyPrefixPoolName = "pool_"
77
88 let keyPrefixPoolIndex = "index_"
99
1010 let keyConfirmedAssets = "confirmed_assets"
1111
1212 let keyAssetPriority = "asset_priority_"
1313
1414 let keyPair = "pair_"
1515
1616 let keyAssetIdA = "A_asset_id"
1717
1818 let keyAssetIdB = "B_asset_id"
1919
2020 let keyOracleScriptHashCPMM = "script_hash_cpmm"
2121
2222 let keyOracleScriptHashFlat = "script_hash_flat"
2323
2424 let cpmmScriptReferenesAddress = base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37'
2525
2626 let flatScriptReferenesAddress = base58'3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW'
2727
2828 let keyAdminPubKey1 = "admin_pub_1"
2929
3030 let keyAdminPubKey2 = "admin_pub_2"
3131
3232 let keyAdminPubKey3 = "admin_pub_3"
3333
3434 let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
3535
3636 let adminPubKey2 = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
3737
3838 let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
3939
4040 let adminStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
4141
4242 let adminStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
4343
4444 let keyAdminStartStop = "admin_start_stop"
4545
4646 let keyAdminStaking = "admin_staking"
4747
4848 let pools = match getString(this, keyPoolsListName) {
4949 case string: String =>
5050 split(string, ",")
5151 case nothing =>
5252 nil
5353 }
5454
5555 func isSelfCall (i) = if ((i.caller == this))
5656 then unit
5757 else unit
5858
5959
6060 func getPoolNameIfValid (poolName) = {
6161 let underscoreIndex = valueOrElse(indexOf(poolName, "_"), -1)
6262 let underscoreLastIndex = valueOrElse(lastIndexOf(poolName, "_"), -1)
6363 let hasSingleUnderscore = if (if ((underscoreIndex == underscoreLastIndex))
6464 then (underscoreIndex > 0)
6565 else false)
6666 then (underscoreIndex != (size(poolName) - 1))
6767 else false
6868 if (hasSingleUnderscore)
6969 then poolName
7070 else throw("Pool name must consist of two asset names separated by an underscore character")
7171 }
7272
7373
7474 func getAddressIfValid (address) = toString(valueOrErrorMessage(addressFromString(address), (("Can't parse \"" + address) + "\" as address")))
7575
7676
7777 @Callable(i)
7878 func setPriority (assetId,priority) = valueOrElse(isSelfCall(i), if ((0 > priority))
7979 then throw("Priority must be positive")
8080 else [IntegerEntry((keyAssetPriority + assetId), priority)])
8181
8282
8383
8484 @Callable(i)
8585 func setAdmin () = valueOrElse(isSelfCall(i), [StringEntry(keyAdminPubKey1, toBase58String(adminPubKey1)), StringEntry(keyAdminPubKey2, toBase58String(adminPubKey2)), StringEntry(keyAdminPubKey3, toBase58String(adminPubKey3))])
8686
8787
8888
8989 @Callable(i)
9090 func addPool (poolAddress,poolName) = valueOrElse(isSelfCall(i), {
9191 let validatedAddress = getAddressIfValid(poolAddress)
9292 let keyName = (keyPrefixPoolName + validatedAddress)
9393 let keyIndex = (keyPrefixPoolIndex + validatedAddress)
9494 let assetIdA = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdA), "Asset id A is incorrect")
9595 let assetIdB = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdB), "Asset id B is incorrect")
9696 let check = isDataStorageUntouched(this)
9797 let userScriptHash = value(scriptHash(i.caller))
9898 let cpmmHash = getBinaryValue(keyOracleScriptHashCPMM)
9999 let flatHash = getBinaryValue(keyOracleScriptHashFlat)
100- if (if (if ((userScriptHash != cpmmHash))
101- then (userScriptHash != flatHash)
100+ let isNotCpmm = if ((userScriptHash != cpmmHash))
101+ then true
102+ else false
103+ let isNotFlat = if ((userScriptHash != flatHash))
104+ then true
105+ else false
106+ let isNotEmptyData = if ((!(check) == true))
107+ then true
108+ else false
109+ if (if (if (isNotCpmm)
110+ then isNotFlat
102111 else false)
103112 then true
104- else !(check))
113+ else isNotEmptyData)
105114 then throw("Unexpected script was found.")
106115 else {
107116 let possiblyAlreadyAddedPool = getString(this, keyName)
108117 let possibleDuplicateA = getString(this, (((keyPair + assetIdA) + "_") + assetIdB))
109118 let possibleDuplicateB = getString(this, (((keyPair + assetIdB) + "_") + assetIdA))
110119 if (isDefined(possiblyAlreadyAddedPool))
111120 then throw((((("Pool with address \"" + validatedAddress) + "\" is already defined with name \"") + value(possiblyAlreadyAddedPool)) + "\""))
112121 else if (if (isDefined(possibleDuplicateA))
113122 then true
114123 else isDefined(possibleDuplicateB))
115124 then throw((((("Pool with assets \"" + assetIdA) + "\" and \"") + assetIdB) + "\" is already exists"))
116125 else [IntegerEntry(keyIndex, size(pools)), StringEntry(keyName, getPoolNameIfValid(poolName)), StringEntry((((keyPair + assetIdA) + "_") + assetIdB), poolAddress), StringEntry(keyPoolsListName, makeString((pools :+ validatedAddress), ","))]
117126 }
118127 })
119128
120129
121130
122131 @Callable(i)
123132 func renamePool (poolAddress,newPoolName) = valueOrElse(isSelfCall(i), {
124133 let validatedAddress = getAddressIfValid(poolAddress)
125134 let keyName = (keyPrefixPoolName + validatedAddress)
126135 let possiblyAlreadyAddedPool = getString(this, keyName)
127136 if (isDefined(possiblyAlreadyAddedPool))
128137 then [StringEntry(keyName, getPoolNameIfValid(newPoolName))]
129138 else throw((("Pool with address \"" + validatedAddress) + "\" has not yet been added"))
130139 })
131140
132141
133142
134143 @Callable(i)
135144 func updateHashes () = valueOrElse(isSelfCall(i), [BinaryEntry(keyOracleScriptHashCPMM, value(scriptHash(Address(cpmmScriptReferenesAddress)))), BinaryEntry(keyOracleScriptHashFlat, value(scriptHash(Address(flatScriptReferenesAddress))))])
136145
137146
138147 @Verifier(tx)
139148 func verify () = {
140149 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
141150 then 1
142151 else 0
143152 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
144153 then 1
145154 else 0
146155 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
147156 then 1
148157 else 0
149158 let signedByAdmin = (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
150159 let signedByAdminToCallAddPool = (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 1)
151160 match tx {
152161 case inv: InvokeScriptTransaction =>
153162 let isSelfInvokeRenamePool = if ((inv.dApp == this))
154163 then containsElement(["renamePool"], inv.function)
155164 else false
156165 let isSelfInvokeSetAdmin = if ((inv.dApp == this))
157166 then containsElement(["setAdmin"], inv.function)
158167 else false
159168 let isInvokeAddPool = containsElement(["addPool"], inv.function)
160169 let isSelfInvokeUpdateHashes = if ((inv.dApp == this))
161170 then containsElement(["updateHashes"], inv.function)
162171 else false
163172 if (if (if (if (if (signedByAdmin)
164173 then (size(inv.payments) == 0)
165174 else false)
166175 then isSelfInvokeRenamePool
167176 else false)
168177 then true
169178 else if ((size(inv.payments) == 0))
170179 then isInvokeAddPool
171180 else false)
172181 then true
173182 else if (if (signedByAdmin)
174183 then (size(inv.payments) == 0)
175184 else false)
176185 then isSelfInvokeSetAdmin
177186 else false)
178187 then true
179188 else if (if (signedByAdmin)
180189 then (size(inv.payments) == 0)
181190 else false)
182191 then isSelfInvokeUpdateHashes
183192 else false
184193 case _: Order|DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction =>
185194 signedByAdmin
186195 case _ =>
187196 throw("Match error")
188197 }
189198 }
190199

github/deemru/w8io/169f3d6 
59.81 ms