tx · 5Dfz4gWbFx46iiJjC1P7cAwivWup28SMexg9uV4HrQqq

3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9:  -0.01400000 Waves

2021.11.18 17:06 [1796579] smart account 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9 > SELF 0.00000000 Waves

{ "type": 13, "id": "5Dfz4gWbFx46iiJjC1P7cAwivWup28SMexg9uV4HrQqq", "fee": 1400000, "feeAssetId": null, "timestamp": 1637244429557, "version": 2, "chainId": 84, "sender": "3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9", "senderPublicKey": "D1X9WatF6ARMCmm3jC4Ex5Wd5VQ3LY8i1xbHNqeHqeAa", "proofs": [ "3XpupUdXKePZoQzMuABcPoiJcTT35HvRvVy89fDwgSPobZz1wiWfTVznxw7UKxvNtJnNYhmU9FWBokYcyiQdLtC8", "3WbQ5sbdQ6EqybCJDSeDeHCpJdDoLbtmvHjvNRSPSLdZtnuHZWsc3UAThDqCrcv3YAGmowsHHv65FWxHFgd276PK" ], "script": "base64:AAIFAAAAAAAAAB8IAhIAEgQKAggIEgQKAggIEgMKAQQSAwoBCBIDCgEIAAAAEgAAAAAQa2V5UG9vbHNMaXN0TmFtZQIAAAAFcG9vbHMAAAAAEWtleVByZWZpeFBvb2xOYW1lAgAAAAVwb29sXwAAAAASa2V5UHJlZml4UG9vbEluZGV4AgAAAAZpbmRleF8AAAAAB2tleVBhaXICAAAABXBhaXJfAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAIWtleUxhdW5jaHBhZERhdGFUcmFuc2FjdGlvblN0YXR1cwIAAAAhbGF1bmNocGFkX2RhdGFfdHJhbnNhY3Rpb25fc3RhdHVzAAAAAA9rZXlBZG1pblB1YktleTECAAAAC2FkbWluX3B1Yl8xAAAAAA9rZXlBZG1pblB1YktleTICAAAAC2FkbWluX3B1Yl8yAAAAAA9rZXlBZG1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HJG1hdGNoMAIAAAAWQ3JlYXRlQWxpYXNUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFkxlYXNlQ2FuY2VsVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBMZWFzZVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQSXNzdWVUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGlVwZGF0ZUFzc2V0SW5mb1RyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBQAAAA1zaWduZWRCeUFkbWluCQAAAgAAAAECAAAAC01hdGNoIGVycm9y6x0hXg==", "height": 1796579, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8J9ZG8fyYyjFnjDL4z5e8vcGHyauDXDQiFS9fsjsbGxW Next: GiBKoK8NbkzVV9KaEuMEKH1SF8KCjU3Wi5Pe3m3Kqg9v Diff:
OldNewDifferences
2020 let keyAdminPubKey2 = "admin_pub_2"
2121
2222 let keyAdminPubKey3 = "admin_pub_3"
23+
24+let keyAchievementsWriters = "achievements_writers"
2325
2426 let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
2527
9294 func launchpadDataTransactionStatus (status) = valueOrElse(isSelfCall(i), [BooleanEntry(keyLaunchpadDataTransactionStatus, status)])
9395
9496
97+
98+@Callable(i)
99+func addAchievementsWriter (address) = {
100+ let writers = split(valueOrElse(getString(this, keyAchievementsWriters), ""), ",")
101+[StringEntry(keyAchievementsWriters, makeString((writers :+ address), ","))]
102+ }
103+
104+
105+
106+@Callable(i)
107+func removeAchievementsWriter (address) = {
108+ let writers = split(valueOrElse(getString(this, keyAchievementsWriters), ""), ",")
109+ let index = valueOrErrorMessage(indexOf(writers, address), "Can't find address in the list")
110+[StringEntry(keyAchievementsWriters, makeString(removeByIndex(writers, index), ","))]
111+ }
112+
113+
95114 @Verifier(tx)
96115 func verify () = {
97116 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
119138 let isSelfInvokeLaunchpadDataTxStatus = if ((inv.dApp == this))
120139 then containsElement(["launchpadDataTransactionStatus"], inv.function)
121140 else false
122- if (if (if (if (if (signedByAdmin)
141+ let isSelfInvokeAddAchievementsWriter = if ((inv.dApp == this))
142+ then containsElement(["addAchievementsWriter"], inv.function)
143+ else false
144+ let isSelfInvokeRemoveAchievementsWriter = if ((inv.dApp == this))
145+ then containsElement(["removeAchievementsWriter"], inv.function)
146+ else false
147+ if (if (if (if (if (if (if (signedByAdmin)
123148 then (size(inv.payments) == 0)
124149 else false)
125150 then isSelfInvokeRenamePool
141166 then (size(inv.payments) == 0)
142167 else false)
143168 then isSelfInvokeLaunchpadDataTxStatus
169+ else false)
170+ then true
171+ else if (if (signedByAdmin)
172+ then (size(inv.payments) == 0)
173+ else false)
174+ then isSelfInvokeAddAchievementsWriter
175+ else false)
176+ then true
177+ else if (if (signedByAdmin)
178+ then (size(inv.payments) == 0)
179+ else false)
180+ then isSelfInvokeRemoveAchievementsWriter
144181 else false
145182 case _: Order|DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction =>
146183 signedByAdmin
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"
23+
24+let keyAchievementsWriters = "achievements_writers"
2325
2426 let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
2527
2628 let adminPubKey2 = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
2729
2830 let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
2931
3032 let pools = match getString(this, keyPoolsListName) {
3133 case string: String =>
3234 split(string, ",")
3335 case nothing =>
3436 nil
3537 }
3638
3739 func isSelfCall (i) = if ((i.caller == this))
3840 then unit
3941 else throw("Only the Oracle itself can invoke this function")
4042
4143
4244 func getPoolNameIfValid (poolName) = {
4345 let underscoreIndex = valueOrElse(indexOf(poolName, "_"), -1)
4446 let underscoreLastIndex = valueOrElse(lastIndexOf(poolName, "_"), -1)
4547 let hasSingleUnderscore = if (if ((underscoreIndex == underscoreLastIndex))
4648 then (underscoreIndex > 0)
4749 else false)
4850 then (underscoreIndex != (size(poolName) - 1))
4951 else false
5052 if (hasSingleUnderscore)
5153 then poolName
5254 else throw("Pool name must consist of two asset names separated by an underscore character")
5355 }
5456
5557
5658 func getAddressIfValid (address) = toString(valueOrErrorMessage(addressFromString(address), (("Can't parse \"" + address) + "\" as address")))
5759
5860
5961 @Callable(i)
6062 func setAdmin () = valueOrElse(isSelfCall(i), [StringEntry(keyAdminPubKey1, toBase58String(adminPubKey1)), StringEntry(keyAdminPubKey2, toBase58String(adminPubKey2)), StringEntry(keyAdminPubKey3, toBase58String(adminPubKey3))])
6163
6264
6365
6466 @Callable(i)
6567 func addPool (poolAddress,poolName) = valueOrElse(isSelfCall(i), {
6668 let validatedAddress = getAddressIfValid(poolAddress)
6769 let keyName = (keyPrefixPoolName + validatedAddress)
6870 let keyIndex = (keyPrefixPoolIndex + validatedAddress)
6971 let assetIdA = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdA), "Asset id A is incorrect")
7072 let assetIdB = valueOrErrorMessage(getString(value(addressFromString(poolAddress)), keyAssetIdB), "Asset id B is incorrect")
7173 let possiblyAlreadyAddedPool = getString(this, keyName)
7274 if (isDefined(possiblyAlreadyAddedPool))
7375 then throw((((("Pool with address \"" + validatedAddress) + "\" is already defined with name \"") + value(possiblyAlreadyAddedPool)) + "\""))
7476 else [IntegerEntry(keyIndex, size(pools)), StringEntry(keyName, getPoolNameIfValid(poolName)), StringEntry((((keyPair + assetIdA) + "_") + assetIdB), poolAddress), StringEntry(keyPoolsListName, makeString((pools :+ validatedAddress), ","))]
7577 })
7678
7779
7880
7981 @Callable(i)
8082 func renamePool (poolAddress,newPoolName) = valueOrElse(isSelfCall(i), {
8183 let validatedAddress = getAddressIfValid(poolAddress)
8284 let keyName = (keyPrefixPoolName + validatedAddress)
8385 let possiblyAlreadyAddedPool = getString(this, keyName)
8486 if (isDefined(possiblyAlreadyAddedPool))
8587 then [StringEntry(keyName, getPoolNameIfValid(newPoolName))]
8688 else throw((("Pool with address \"" + validatedAddress) + "\" has not yet been added"))
8789 })
8890
8991
9092
9193 @Callable(i)
9294 func launchpadDataTransactionStatus (status) = valueOrElse(isSelfCall(i), [BooleanEntry(keyLaunchpadDataTransactionStatus, status)])
9395
9496
97+
98+@Callable(i)
99+func addAchievementsWriter (address) = {
100+ let writers = split(valueOrElse(getString(this, keyAchievementsWriters), ""), ",")
101+[StringEntry(keyAchievementsWriters, makeString((writers :+ address), ","))]
102+ }
103+
104+
105+
106+@Callable(i)
107+func removeAchievementsWriter (address) = {
108+ let writers = split(valueOrElse(getString(this, keyAchievementsWriters), ""), ",")
109+ let index = valueOrErrorMessage(indexOf(writers, address), "Can't find address in the list")
110+[StringEntry(keyAchievementsWriters, makeString(removeByIndex(writers, index), ","))]
111+ }
112+
113+
95114 @Verifier(tx)
96115 func verify () = {
97116 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
98117 then 1
99118 else 0
100119 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
101120 then 1
102121 else 0
103122 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
104123 then 1
105124 else 0
106125 let signedByAdmin = (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
107126 let signedByAdminToCallAddPool = (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 1)
108127 match tx {
109128 case inv: InvokeScriptTransaction =>
110129 let isSelfInvokeRenamePool = if ((inv.dApp == this))
111130 then containsElement(["renamePool"], inv.function)
112131 else false
113132 let isSelfInvokeSetAdmin = if ((inv.dApp == this))
114133 then containsElement(["setAdmin"], inv.function)
115134 else false
116135 let isSelfInvokeAddPool = if ((inv.dApp == this))
117136 then containsElement(["addPool"], inv.function)
118137 else false
119138 let isSelfInvokeLaunchpadDataTxStatus = if ((inv.dApp == this))
120139 then containsElement(["launchpadDataTransactionStatus"], inv.function)
121140 else false
122- if (if (if (if (if (signedByAdmin)
141+ let isSelfInvokeAddAchievementsWriter = if ((inv.dApp == this))
142+ then containsElement(["addAchievementsWriter"], inv.function)
143+ else false
144+ let isSelfInvokeRemoveAchievementsWriter = if ((inv.dApp == this))
145+ then containsElement(["removeAchievementsWriter"], inv.function)
146+ else false
147+ if (if (if (if (if (if (if (signedByAdmin)
123148 then (size(inv.payments) == 0)
124149 else false)
125150 then isSelfInvokeRenamePool
126151 else false)
127152 then true
128153 else if (if (signedByAdminToCallAddPool)
129154 then (size(inv.payments) == 0)
130155 else false)
131156 then isSelfInvokeAddPool
132157 else false)
133158 then true
134159 else if (if (signedByAdmin)
135160 then (size(inv.payments) == 0)
136161 else false)
137162 then isSelfInvokeSetAdmin
138163 else false)
139164 then true
140165 else if (if (signedByAdmin)
141166 then (size(inv.payments) == 0)
142167 else false)
143168 then isSelfInvokeLaunchpadDataTxStatus
169+ else false)
170+ then true
171+ else if (if (signedByAdmin)
172+ then (size(inv.payments) == 0)
173+ else false)
174+ then isSelfInvokeAddAchievementsWriter
175+ else false)
176+ then true
177+ else if (if (signedByAdmin)
178+ then (size(inv.payments) == 0)
179+ else false)
180+ then isSelfInvokeRemoveAchievementsWriter
144181 else false
145182 case _: Order|DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction =>
146183 signedByAdmin
147184 case _ =>
148185 throw("Match error")
149186 }
150187 }
151188

github/deemru/w8io/026f985 
57.15 ms