tx · 9nkr2mbTqGzYXs7zihSA9v3FMnYEwhL9hhd9RmKPs3ik 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9: -0.01400000 Waves 2021.08.20 09:45 [1666324] smart account 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9 > SELF 0.00000000 Waves
{ "type": 13, "id": "9nkr2mbTqGzYXs7zihSA9v3FMnYEwhL9hhd9RmKPs3ik", "fee": 1400000, "feeAssetId": null, "timestamp": 1629441920818, "version": 2, "chainId": 84, "sender": "3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9", "senderPublicKey": "D1X9WatF6ARMCmm3jC4Ex5Wd5VQ3LY8i1xbHNqeHqeAa", "proofs": [ "4sRSj3GgyjU99sojYsXQeLBm5jnCXzLGWQ7SCaXY9Xf6jBYSPyZfoqpPcz8ih1bsKw4RsGmSbjT52chPDhsaYXmj", "5xZWXg1xESYuPFvdSTDJEFHmjDFLNoWec7q1DqwKg6wNRzoWuJKvDRqjyx8qgGVFX9d8zYSNPznS2g5BYQFZqZgy" ], "script": "base64:AAIFAAAAAAAAABgIAhIECgIIARIAEgQKAggIEgQKAggIEgAAAAAYAAAAABBrZXlQb29sc0xpc3ROYW1lAgAAAAVwb29scwAAAAARa2V5UHJlZml4UG9vbE5hbWUCAAAABXBvb2xfAAAAABJrZXlQcmVmaXhQb29sSW5kZXgCAAAABmluZGV4XwAAAAASa2V5Q29uZmlybWVkQXNzZXRzAgAAABBjb25maXJtZWRfYXNzZXRzAAAAABBrZXlBc3NldFByaW9yaXR5AgAAAA9hc3NldF9wcmlvcml0eV8AAAAAB2tleVBhaXICAAAABXBhaXJfAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAF2tleU9yYWNsZVNjcmlwdEhhc2hDUE1NAgAAABBzY3JpcHRfaGFzaF9jcG1tAAAAABdrZXlPcmFjbGVTY3JpcHRIYXNoRmxhdAI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AAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24FAAAADXNpZ25lZEJ5QWRtaW4JAAACAAAAAQIAAAALTWF0Y2ggZXJyb3JW8Aap", "height": 1666324, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DZFMBwnF1gEzsrut6yobCickQQAuKFAfkuGFhU6CN5DW Next: A6Dz95ZxuxsN6P3oe8femjmPNQYfSFLxKMDrPDSB4VDM Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | let keyPrefixPoolName = "pool_" | |
7 | 7 | ||
8 | 8 | let keyPrefixPoolIndex = "index_" | |
9 | - | ||
10 | - | let keyInitPoolHeight = "init_pool_height_" | |
11 | 9 | ||
12 | 10 | let keyConfirmedAssets = "confirmed_assets" | |
13 | 11 | ||
18 | 16 | let keyAssetIdA = "A_asset_id" | |
19 | 17 | ||
20 | 18 | let keyAssetIdB = "B_asset_id" | |
19 | + | ||
20 | + | let keyOracleScriptHashCPMM = "script_hash_cpmm" | |
21 | + | ||
22 | + | let keyOracleScriptHashFlat = "script_hash_flat" | |
23 | + | ||
24 | + | let cpmmScriptReferenesAddress = base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37' | |
25 | + | ||
26 | + | let flatScriptReferenesAddress = base58'3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW' | |
21 | 27 | ||
22 | 28 | let keyAdminPubKey1 = "admin_pub_1" | |
23 | 29 | ||
31 | 37 | ||
32 | 38 | let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP' | |
33 | 39 | ||
40 | + | let adminStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
41 | + | ||
42 | + | let adminStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
43 | + | ||
34 | 44 | let pools = match getString(this, keyPoolsListName) { | |
35 | 45 | case string: String => | |
36 | 46 | split(string, ",") | |
40 | 50 | ||
41 | 51 | func isSelfCall (i) = if ((i.caller == this)) | |
42 | 52 | then unit | |
43 | - | else | |
53 | + | else unit | |
44 | 54 | ||
45 | 55 | ||
46 | 56 | func getPoolNameIfValid (poolName) = { | |
61 | 71 | ||
62 | 72 | ||
63 | 73 | @Callable(i) | |
74 | + | func setPriority (assetId,priority) = valueOrElse(isSelfCall(i), if ((0 > priority)) | |
75 | + | then throw("Priority must be positive") | |
76 | + | else [IntegerEntry((keyAssetPriority + assetId), priority)]) | |
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | @Callable(i) | |
64 | 81 | func setAdmin () = valueOrElse(isSelfCall(i), [StringEntry(keyAdminPubKey1, toBase58String(adminPubKey1)), StringEntry(keyAdminPubKey2, toBase58String(adminPubKey2)), StringEntry(keyAdminPubKey3, toBase58String(adminPubKey3))]) | |
65 | 82 | ||
66 | 83 | ||
72 | 89 | let keyIndex = (keyPrefixPoolIndex + validatedAddress) | |
73 | 90 | let assetIdA = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdA), "Asset id A is incorrect") | |
74 | 91 | let assetIdB = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdB), "Asset id B is incorrect") | |
75 | - | let possiblyAlreadyAddedPool = getString(this, keyName) | |
76 | - | if (isDefined(possiblyAlreadyAddedPool)) | |
77 | - | then throw((((("Pool with address \"" + validatedAddress) + "\" is already defined with name \"") + value(possiblyAlreadyAddedPool)) + "\"")) | |
78 | - | else [IntegerEntry(keyIndex, size(pools)), IntegerEntry((keyInitPoolHeight + poolAddress), height), StringEntry(keyName, getPoolNameIfValid(poolName)), StringEntry((((keyPair + assetIdA) + "_") + assetIdB), poolAddress), StringEntry(keyPoolsListName, makeString((pools :+ validatedAddress), ","))] | |
92 | + | let check = isDataStorageUntouched(this) | |
93 | + | let userScriptHash = value(scriptHash(i.caller)) | |
94 | + | let cpmmHash = getBinaryValue(keyOracleScriptHashCPMM) | |
95 | + | let flatHash = getBinaryValue(keyOracleScriptHashFlat) | |
96 | + | let isNotCpmm = if ((userScriptHash != cpmmHash)) | |
97 | + | then true | |
98 | + | else false | |
99 | + | let isNotFlat = if ((userScriptHash != flatHash)) | |
100 | + | then true | |
101 | + | else false | |
102 | + | let isNotEmptyData = if ((!(check) == true)) | |
103 | + | then true | |
104 | + | else false | |
105 | + | let isEmptyData = if ((!(check) == false)) | |
106 | + | then true | |
107 | + | else false | |
108 | + | let isNotEmpty = if ((check == false)) | |
109 | + | then true | |
110 | + | else false | |
111 | + | let isEmpty = if ((check == true)) | |
112 | + | then true | |
113 | + | else false | |
114 | + | let isNotPoolContract = if (if (isNotCpmm) | |
115 | + | then isNotFlat | |
116 | + | else false) | |
117 | + | then true | |
118 | + | else false | |
119 | + | if (if (isNotPoolContract) | |
120 | + | then true | |
121 | + | else if (if (if (isNotEmptyData) | |
122 | + | then !(isEmptyData) | |
123 | + | else false) | |
124 | + | then isNotEmpty | |
125 | + | else false) | |
126 | + | then !(isEmpty) | |
127 | + | else false) | |
128 | + | then throw("Unexpected script was found.") | |
129 | + | else { | |
130 | + | let possiblyAlreadyAddedPool = getString(this, keyName) | |
131 | + | let possibleDuplicateA = getString(this, (((keyPair + assetIdA) + "_") + assetIdB)) | |
132 | + | let possibleDuplicateB = getString(this, (((keyPair + assetIdB) + "_") + assetIdA)) | |
133 | + | if (isDefined(possiblyAlreadyAddedPool)) | |
134 | + | then throw((((("Pool with address \"" + validatedAddress) + "\" is already defined with name \"") + value(possiblyAlreadyAddedPool)) + "\"")) | |
135 | + | else if (if (isDefined(possibleDuplicateA)) | |
136 | + | then true | |
137 | + | else isDefined(possibleDuplicateB)) | |
138 | + | then throw((((("Pool with assets \"" + assetIdA) + "\" and \"") + assetIdB) + "\" is already exists")) | |
139 | + | else [IntegerEntry(keyIndex, size(pools)), StringEntry(keyName, getPoolNameIfValid(poolName)), StringEntry((((keyPair + assetIdA) + "_") + assetIdB), poolAddress), StringEntry(keyPoolsListName, makeString((pools :+ validatedAddress), ","))] | |
140 | + | } | |
79 | 141 | }) | |
80 | 142 | ||
81 | 143 | ||
89 | 151 | then [StringEntry(keyName, getPoolNameIfValid(newPoolName))] | |
90 | 152 | else throw((("Pool with address \"" + validatedAddress) + "\" has not yet been added")) | |
91 | 153 | }) | |
154 | + | ||
155 | + | ||
156 | + | ||
157 | + | @Callable(i) | |
158 | + | func updateHashes () = valueOrElse(isSelfCall(i), [BinaryEntry(keyOracleScriptHashCPMM, value(scriptHash(Address(cpmmScriptReferenesAddress)))), BinaryEntry(keyOracleScriptHashFlat, value(scriptHash(Address(flatScriptReferenesAddress))))]) | |
92 | 159 | ||
93 | 160 | ||
94 | 161 | @Verifier(tx) | |
112 | 179 | let isSelfInvokeSetAdmin = if ((inv.dApp == this)) | |
113 | 180 | then containsElement(["setAdmin"], inv.function) | |
114 | 181 | else false | |
115 | - | let isSelfInvokeAddPool = if ((inv.dApp == this)) | |
116 | - | then containsElement(["addPool"], inv.function) | |
182 | + | let isInvokeAddPool = containsElement(["addPool"], inv.function) | |
183 | + | let isSelfInvokeUpdateHashes = if ((inv.dApp == this)) | |
184 | + | then containsElement(["updateHashes"], inv.function) | |
117 | 185 | else false | |
118 | - | if (if (if (if (signedByAdmin) | |
186 | + | if (if (if (if (if (signedByAdmin) | |
119 | 187 | then (size(inv.payments) == 0) | |
120 | 188 | else false) | |
121 | 189 | then isSelfInvokeRenamePool | |
122 | 190 | else false) | |
123 | 191 | then true | |
124 | - | else if (if (signedByAdminToCallAddPool) | |
125 | - | then (size(inv.payments) == 0) | |
126 | - | else false) | |
127 | - | then isSelfInvokeAddPool | |
192 | + | else if ((size(inv.payments) == 0)) | |
193 | + | then isInvokeAddPool | |
128 | 194 | else false) | |
129 | 195 | then true | |
130 | 196 | else if (if (signedByAdmin) | |
131 | 197 | then (size(inv.payments) == 0) | |
132 | 198 | else false) | |
133 | 199 | then isSelfInvokeSetAdmin | |
200 | + | else false) | |
201 | + | then true | |
202 | + | else if (if (signedByAdmin) | |
203 | + | then (size(inv.payments) == 0) | |
204 | + | else false) | |
205 | + | then isSelfInvokeUpdateHashes | |
134 | 206 | else false | |
135 | 207 | case _: Order|DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction => | |
136 | 208 | signedByAdmin |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let keyPoolsListName = "pools" | |
5 | 5 | ||
6 | 6 | let keyPrefixPoolName = "pool_" | |
7 | 7 | ||
8 | 8 | let keyPrefixPoolIndex = "index_" | |
9 | - | ||
10 | - | let keyInitPoolHeight = "init_pool_height_" | |
11 | 9 | ||
12 | 10 | let keyConfirmedAssets = "confirmed_assets" | |
13 | 11 | ||
14 | 12 | let keyAssetPriority = "asset_priority_" | |
15 | 13 | ||
16 | 14 | let keyPair = "pair_" | |
17 | 15 | ||
18 | 16 | let keyAssetIdA = "A_asset_id" | |
19 | 17 | ||
20 | 18 | let keyAssetIdB = "B_asset_id" | |
19 | + | ||
20 | + | let keyOracleScriptHashCPMM = "script_hash_cpmm" | |
21 | + | ||
22 | + | let keyOracleScriptHashFlat = "script_hash_flat" | |
23 | + | ||
24 | + | let cpmmScriptReferenesAddress = base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37' | |
25 | + | ||
26 | + | let flatScriptReferenesAddress = base58'3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW' | |
21 | 27 | ||
22 | 28 | let keyAdminPubKey1 = "admin_pub_1" | |
23 | 29 | ||
24 | 30 | let keyAdminPubKey2 = "admin_pub_2" | |
25 | 31 | ||
26 | 32 | let keyAdminPubKey3 = "admin_pub_3" | |
27 | 33 | ||
28 | 34 | let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy' | |
29 | 35 | ||
30 | 36 | let adminPubKey2 = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk' | |
31 | 37 | ||
32 | 38 | let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP' | |
33 | 39 | ||
40 | + | let adminStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
41 | + | ||
42 | + | let adminStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
43 | + | ||
34 | 44 | let pools = match getString(this, keyPoolsListName) { | |
35 | 45 | case string: String => | |
36 | 46 | split(string, ",") | |
37 | 47 | case nothing => | |
38 | 48 | nil | |
39 | 49 | } | |
40 | 50 | ||
41 | 51 | func isSelfCall (i) = if ((i.caller == this)) | |
42 | 52 | then unit | |
43 | - | else | |
53 | + | else unit | |
44 | 54 | ||
45 | 55 | ||
46 | 56 | func getPoolNameIfValid (poolName) = { | |
47 | 57 | let underscoreIndex = valueOrElse(indexOf(poolName, "_"), -1) | |
48 | 58 | let underscoreLastIndex = valueOrElse(lastIndexOf(poolName, "_"), -1) | |
49 | 59 | let hasSingleUnderscore = if (if ((underscoreIndex == underscoreLastIndex)) | |
50 | 60 | then (underscoreIndex > 0) | |
51 | 61 | else false) | |
52 | 62 | then (underscoreIndex != (size(poolName) - 1)) | |
53 | 63 | else false | |
54 | 64 | if (hasSingleUnderscore) | |
55 | 65 | then poolName | |
56 | 66 | else throw("Pool name must consist of two asset names separated by an underscore character") | |
57 | 67 | } | |
58 | 68 | ||
59 | 69 | ||
60 | 70 | func getAddressIfValid (address) = toString(valueOrErrorMessage(addressFromString(address), (("Can't parse \"" + address) + "\" as address"))) | |
61 | 71 | ||
62 | 72 | ||
63 | 73 | @Callable(i) | |
74 | + | func setPriority (assetId,priority) = valueOrElse(isSelfCall(i), if ((0 > priority)) | |
75 | + | then throw("Priority must be positive") | |
76 | + | else [IntegerEntry((keyAssetPriority + assetId), priority)]) | |
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | @Callable(i) | |
64 | 81 | func setAdmin () = valueOrElse(isSelfCall(i), [StringEntry(keyAdminPubKey1, toBase58String(adminPubKey1)), StringEntry(keyAdminPubKey2, toBase58String(adminPubKey2)), StringEntry(keyAdminPubKey3, toBase58String(adminPubKey3))]) | |
65 | 82 | ||
66 | 83 | ||
67 | 84 | ||
68 | 85 | @Callable(i) | |
69 | 86 | func addPool (poolAddress,poolName) = valueOrElse(isSelfCall(i), { | |
70 | 87 | let validatedAddress = getAddressIfValid(poolAddress) | |
71 | 88 | let keyName = (keyPrefixPoolName + validatedAddress) | |
72 | 89 | let keyIndex = (keyPrefixPoolIndex + validatedAddress) | |
73 | 90 | let assetIdA = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdA), "Asset id A is incorrect") | |
74 | 91 | let assetIdB = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdB), "Asset id B is incorrect") | |
75 | - | let possiblyAlreadyAddedPool = getString(this, keyName) | |
76 | - | if (isDefined(possiblyAlreadyAddedPool)) | |
77 | - | then throw((((("Pool with address \"" + validatedAddress) + "\" is already defined with name \"") + value(possiblyAlreadyAddedPool)) + "\"")) | |
78 | - | else [IntegerEntry(keyIndex, size(pools)), IntegerEntry((keyInitPoolHeight + poolAddress), height), StringEntry(keyName, getPoolNameIfValid(poolName)), StringEntry((((keyPair + assetIdA) + "_") + assetIdB), poolAddress), StringEntry(keyPoolsListName, makeString((pools :+ validatedAddress), ","))] | |
92 | + | let check = isDataStorageUntouched(this) | |
93 | + | let userScriptHash = value(scriptHash(i.caller)) | |
94 | + | let cpmmHash = getBinaryValue(keyOracleScriptHashCPMM) | |
95 | + | let flatHash = getBinaryValue(keyOracleScriptHashFlat) | |
96 | + | let isNotCpmm = if ((userScriptHash != cpmmHash)) | |
97 | + | then true | |
98 | + | else false | |
99 | + | let isNotFlat = if ((userScriptHash != flatHash)) | |
100 | + | then true | |
101 | + | else false | |
102 | + | let isNotEmptyData = if ((!(check) == true)) | |
103 | + | then true | |
104 | + | else false | |
105 | + | let isEmptyData = if ((!(check) == false)) | |
106 | + | then true | |
107 | + | else false | |
108 | + | let isNotEmpty = if ((check == false)) | |
109 | + | then true | |
110 | + | else false | |
111 | + | let isEmpty = if ((check == true)) | |
112 | + | then true | |
113 | + | else false | |
114 | + | let isNotPoolContract = if (if (isNotCpmm) | |
115 | + | then isNotFlat | |
116 | + | else false) | |
117 | + | then true | |
118 | + | else false | |
119 | + | if (if (isNotPoolContract) | |
120 | + | then true | |
121 | + | else if (if (if (isNotEmptyData) | |
122 | + | then !(isEmptyData) | |
123 | + | else false) | |
124 | + | then isNotEmpty | |
125 | + | else false) | |
126 | + | then !(isEmpty) | |
127 | + | else false) | |
128 | + | then throw("Unexpected script was found.") | |
129 | + | else { | |
130 | + | let possiblyAlreadyAddedPool = getString(this, keyName) | |
131 | + | let possibleDuplicateA = getString(this, (((keyPair + assetIdA) + "_") + assetIdB)) | |
132 | + | let possibleDuplicateB = getString(this, (((keyPair + assetIdB) + "_") + assetIdA)) | |
133 | + | if (isDefined(possiblyAlreadyAddedPool)) | |
134 | + | then throw((((("Pool with address \"" + validatedAddress) + "\" is already defined with name \"") + value(possiblyAlreadyAddedPool)) + "\"")) | |
135 | + | else if (if (isDefined(possibleDuplicateA)) | |
136 | + | then true | |
137 | + | else isDefined(possibleDuplicateB)) | |
138 | + | then throw((((("Pool with assets \"" + assetIdA) + "\" and \"") + assetIdB) + "\" is already exists")) | |
139 | + | else [IntegerEntry(keyIndex, size(pools)), StringEntry(keyName, getPoolNameIfValid(poolName)), StringEntry((((keyPair + assetIdA) + "_") + assetIdB), poolAddress), StringEntry(keyPoolsListName, makeString((pools :+ validatedAddress), ","))] | |
140 | + | } | |
79 | 141 | }) | |
80 | 142 | ||
81 | 143 | ||
82 | 144 | ||
83 | 145 | @Callable(i) | |
84 | 146 | func renamePool (poolAddress,newPoolName) = valueOrElse(isSelfCall(i), { | |
85 | 147 | let validatedAddress = getAddressIfValid(poolAddress) | |
86 | 148 | let keyName = (keyPrefixPoolName + validatedAddress) | |
87 | 149 | let possiblyAlreadyAddedPool = getString(this, keyName) | |
88 | 150 | if (isDefined(possiblyAlreadyAddedPool)) | |
89 | 151 | then [StringEntry(keyName, getPoolNameIfValid(newPoolName))] | |
90 | 152 | else throw((("Pool with address \"" + validatedAddress) + "\" has not yet been added")) | |
91 | 153 | }) | |
154 | + | ||
155 | + | ||
156 | + | ||
157 | + | @Callable(i) | |
158 | + | func updateHashes () = valueOrElse(isSelfCall(i), [BinaryEntry(keyOracleScriptHashCPMM, value(scriptHash(Address(cpmmScriptReferenesAddress)))), BinaryEntry(keyOracleScriptHashFlat, value(scriptHash(Address(flatScriptReferenesAddress))))]) | |
92 | 159 | ||
93 | 160 | ||
94 | 161 | @Verifier(tx) | |
95 | 162 | func verify () = { | |
96 | 163 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
97 | 164 | then 1 | |
98 | 165 | else 0 | |
99 | 166 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
100 | 167 | then 1 | |
101 | 168 | else 0 | |
102 | 169 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
103 | 170 | then 1 | |
104 | 171 | else 0 | |
105 | 172 | let signedByAdmin = (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
106 | 173 | let signedByAdminToCallAddPool = (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 1) | |
107 | 174 | match tx { | |
108 | 175 | case inv: InvokeScriptTransaction => | |
109 | 176 | let isSelfInvokeRenamePool = if ((inv.dApp == this)) | |
110 | 177 | then containsElement(["renamePool"], inv.function) | |
111 | 178 | else false | |
112 | 179 | let isSelfInvokeSetAdmin = if ((inv.dApp == this)) | |
113 | 180 | then containsElement(["setAdmin"], inv.function) | |
114 | 181 | else false | |
115 | - | let isSelfInvokeAddPool = if ((inv.dApp == this)) | |
116 | - | then containsElement(["addPool"], inv.function) | |
182 | + | let isInvokeAddPool = containsElement(["addPool"], inv.function) | |
183 | + | let isSelfInvokeUpdateHashes = if ((inv.dApp == this)) | |
184 | + | then containsElement(["updateHashes"], inv.function) | |
117 | 185 | else false | |
118 | - | if (if (if (if (signedByAdmin) | |
186 | + | if (if (if (if (if (signedByAdmin) | |
119 | 187 | then (size(inv.payments) == 0) | |
120 | 188 | else false) | |
121 | 189 | then isSelfInvokeRenamePool | |
122 | 190 | else false) | |
123 | 191 | then true | |
124 | - | else if (if (signedByAdminToCallAddPool) | |
125 | - | then (size(inv.payments) == 0) | |
126 | - | else false) | |
127 | - | then isSelfInvokeAddPool | |
192 | + | else if ((size(inv.payments) == 0)) | |
193 | + | then isInvokeAddPool | |
128 | 194 | else false) | |
129 | 195 | then true | |
130 | 196 | else if (if (signedByAdmin) | |
131 | 197 | then (size(inv.payments) == 0) | |
132 | 198 | else false) | |
133 | 199 | then isSelfInvokeSetAdmin | |
200 | + | else false) | |
201 | + | then true | |
202 | + | else if (if (signedByAdmin) | |
203 | + | then (size(inv.payments) == 0) | |
204 | + | else false) | |
205 | + | then isSelfInvokeUpdateHashes | |
134 | 206 | else false | |
135 | 207 | case _: Order|DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction => | |
136 | 208 | signedByAdmin | |
137 | 209 | case _ => | |
138 | 210 | throw("Match error") | |
139 | 211 | } | |
140 | 212 | } | |
141 | 213 |
github/deemru/w8io/169f3d6 39.34 ms ◑