tx · GgiHgwuxdoxEhF7GmCP8D2kCXQPJAUDk891spAYwcnjn

3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9:  -0.01400000 Waves

2021.11.19 12:31 [1797743] smart account 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9 > SELF 0.00000000 Waves

{ "type": 13, "id": "GgiHgwuxdoxEhF7GmCP8D2kCXQPJAUDk891spAYwcnjn", "fee": 1400000, "feeAssetId": null, "timestamp": 1637314294263, "version": 2, "chainId": 84, "sender": "3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9", "senderPublicKey": "D1X9WatF6ARMCmm3jC4Ex5Wd5VQ3LY8i1xbHNqeHqeAa", "proofs": [ "4NEjLLKWhqn5JfbUHkoEzxKqvBfFRhBMRVES1VS7jKd7WiX9z6M7YhMsG6M7WsEn1Gn1BvxqUQqGTriVrsam1dh5", "3Ud8Db4hJVQW2hmcRHTemWB2R9Lb8BzNgh4puNJomgfQoLT9FVuBftZvfkJmmPjEyXmtY4e4VLCh5U6hLBYmNkxU" ], "script": "base64:AAIFAAAAAAAAAB8IAhIAEgQKAggIEgQKAggIEgMKAQQSAwoBCBIDCgEIAAAAEgAAAAAQa2V5UG9vbHNMaXN0TmFtZQIAAAAFcG9vbHMAAAAAEWtleVByZWZpeFBvb2xOYW1lAgAAAAVwb29sXwAAAAASa2V5UHJlZml4UG9vbEluZGV4AgAAAAZpbmRleF8AAAAAB2tleVBhaXICAAAABXBhaXJfAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAIWtleUxhdW5jaHBhZERhdGFUcmFuc2FjdGlvblN0YXR1cwIAAAAhbGF1bmNocGFkX2RhdGFfdHJhbnNhY3Rpb25fc3RhdHVzAAAAAA9rZXlBZG1pblB1YktleTECAAAAC2FkbWluX3B1Yl8xAAAAAA9rZXlBZG1pblB1YktleTICAAAAC2FkbWluX3B1Yl8yAAAAAA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exity": 0 } View: original | compacted Prev: GiBKoK8NbkzVV9KaEuMEKH1SF8KCjU3Wi5Pe3m3Kqg9v Next: d4TfDvx31GC6F42TEiRMTdAfJXAuevKCjyp9t3khJvG 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 keyPair = "pair_"
1111
1212 let keyAssetIdA = "A_asset_id"
1313
1414 let keyAssetIdB = "B_asset_id"
1515
1616 let keyLaunchpadDataTransactionStatus = "launchpad_data_transaction_status"
1717
1818 let keyAdminPubKey1 = "admin_pub_1"
1919
2020 let keyAdminPubKey2 = "admin_pub_2"
2121
2222 let keyAdminPubKey3 = "admin_pub_3"
2323
2424 let keyAchievementsWriters = "achievements_writers"
2525
2626 let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
2727
2828 let adminPubKey2 = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
2929
3030 let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
3131
3232 let pools = match getString(this, keyPoolsListName) {
3333 case string: String =>
3434 split(string, ",")
3535 case nothing =>
3636 nil
3737 }
3838
3939 func isSelfCall (i) = if ((i.caller == this))
4040 then unit
4141 else throw("Only the Oracle itself can invoke this function")
4242
4343
4444 func getPoolNameIfValid (poolName) = {
4545 let underscoreIndex = valueOrElse(indexOf(poolName, "_"), -1)
4646 let underscoreLastIndex = valueOrElse(lastIndexOf(poolName, "_"), -1)
4747 let hasSingleUnderscore = if (if ((underscoreIndex == underscoreLastIndex))
4848 then (underscoreIndex > 0)
4949 else false)
5050 then (underscoreIndex != (size(poolName) - 1))
5151 else false
5252 if (hasSingleUnderscore)
5353 then poolName
5454 else throw("Pool name must consist of two asset names separated by an underscore character")
5555 }
5656
5757
5858 func getAddressIfValid (address) = toString(valueOrErrorMessage(addressFromString(address), (("Can't parse \"" + address) + "\" as address")))
5959
6060
6161 @Callable(i)
6262 func setAdmin () = valueOrElse(isSelfCall(i), [StringEntry(keyAdminPubKey1, toBase58String(adminPubKey1)), StringEntry(keyAdminPubKey2, toBase58String(adminPubKey2)), StringEntry(keyAdminPubKey3, toBase58String(adminPubKey3))])
6363
6464
6565
6666 @Callable(i)
6767 func addPool (poolAddress,poolName) = valueOrElse(isSelfCall(i), {
6868 let validatedAddress = getAddressIfValid(poolAddress)
6969 let keyName = (keyPrefixPoolName + validatedAddress)
7070 let keyIndex = (keyPrefixPoolIndex + validatedAddress)
7171 let assetIdA = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdA), "Asset id A is incorrect")
7272 let assetIdB = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdB), "Asset id B is incorrect")
7373 let possiblyAlreadyAddedPool = getString(this, keyName)
7474 if (isDefined(possiblyAlreadyAddedPool))
7575 then throw((((("Pool with address \"" + validatedAddress) + "\" is already defined with name \"") + value(possiblyAlreadyAddedPool)) + "\""))
7676 else [IntegerEntry(keyIndex, size(pools)), StringEntry(keyName, getPoolNameIfValid(poolName)), StringEntry((((keyPair + assetIdA) + "_") + assetIdB), poolAddress), StringEntry(keyPoolsListName, makeString((pools :+ validatedAddress), ","))]
7777 })
7878
7979
8080
8181 @Callable(i)
8282 func renamePool (poolAddress,newPoolName) = valueOrElse(isSelfCall(i), {
8383 let validatedAddress = getAddressIfValid(poolAddress)
8484 let keyName = (keyPrefixPoolName + validatedAddress)
8585 let possiblyAlreadyAddedPool = getString(this, keyName)
8686 if (isDefined(possiblyAlreadyAddedPool))
8787 then [StringEntry(keyName, getPoolNameIfValid(newPoolName))]
8888 else throw((("Pool with address \"" + validatedAddress) + "\" has not yet been added"))
8989 })
9090
9191
9292
9393 @Callable(i)
9494 func launchpadDataTransactionStatus (status) = valueOrElse(isSelfCall(i), [BooleanEntry(keyLaunchpadDataTransactionStatus, status)])
9595
9696
9797
9898 @Callable(i)
9999 func addAchievementsWriter (address) = valueOrElse(isSelfCall(i), {
100100 let writers = valueOrElse(getString(this, keyAchievementsWriters), "")
101101 let data = if ((writers == ""))
102102 then nil
103103 else split(writers, ",")
104104 [StringEntry(keyAchievementsWriters, makeString((data :+ address), ","))]
105105 })
106106
107107
108108
109109 @Callable(i)
110110 func removeAchievementsWriter (address) = valueOrElse(isSelfCall(i), {
111111 let writers = split(valueOrElse(getString(this, keyAchievementsWriters), ""), ",")
112112 let index = valueOrErrorMessage(indexOf(writers, address), "Can't find address in the list")
113113 [StringEntry(keyAchievementsWriters, makeString(removeByIndex(writers, index), ","))]
114114 })
115115
116116
117117 @Verifier(tx)
118118 func verify () = {
119119 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
120120 then 1
121121 else 0
122122 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
123123 then 1
124124 else 0
125125 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
126126 then 1
127127 else 0
128128 let signedByAdmin = (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
129129 let signedByAdminToCallAddPool = (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 1)
130130 match tx {
131131 case inv: InvokeScriptTransaction =>
132132 let isSelfInvokeRenamePool = if ((inv.dApp == this))
133133 then containsElement(["renamePool"], inv.function)
134134 else false
135135 let isSelfInvokeSetAdmin = if ((inv.dApp == this))
136136 then containsElement(["setAdmin"], inv.function)
137137 else false
138138 let isSelfInvokeAddPool = if ((inv.dApp == this))
139139 then containsElement(["addPool"], inv.function)
140140 else false
141141 let isSelfInvokeLaunchpadDataTxStatus = if ((inv.dApp == this))
142142 then containsElement(["launchpadDataTransactionStatus"], inv.function)
143143 else false
144144 let isSelfInvokeAddAchievementsWriter = if ((inv.dApp == this))
145145 then containsElement(["addAchievementsWriter"], inv.function)
146146 else false
147147 let isSelfInvokeRemoveAchievementsWriter = if ((inv.dApp == this))
148148 then containsElement(["removeAchievementsWriter"], inv.function)
149149 else false
150150 if (if (if (if (if (if (if (signedByAdmin)
151151 then (size(inv.payments) == 0)
152152 else false)
153153 then isSelfInvokeRenamePool
154154 else false)
155155 then true
156156 else if (if (signedByAdminToCallAddPool)
157157 then (size(inv.payments) == 0)
158158 else false)
159159 then isSelfInvokeAddPool
160160 else false)
161161 then true
162162 else if (if (signedByAdmin)
163163 then (size(inv.payments) == 0)
164164 else false)
165165 then isSelfInvokeSetAdmin
166166 else false)
167167 then true
168168 else if (if (signedByAdmin)
169169 then (size(inv.payments) == 0)
170170 else false)
171171 then isSelfInvokeLaunchpadDataTxStatus
172172 else false)
173173 then true
174174 else if (if (signedByAdmin)
175175 then (size(inv.payments) == 0)
176176 else false)
177177 then isSelfInvokeAddAchievementsWriter
178178 else false)
179179 then true
180180 else if (if (signedByAdmin)
181181 then (size(inv.payments) == 0)
182182 else false)
183183 then isSelfInvokeRemoveAchievementsWriter
184184 else false
185185 case _: Order|DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction =>
186186 signedByAdmin
187187 case _ =>
188188 throw("Match error")
189189 }
190190 }
191191

github/deemru/w8io/026f985 
30.15 ms