tx · 7A3Ha7iLy3rQuNzYPXZLcqU6AMSMg4Jv1okYXwt2a4YU

3MtCto83UgaYLqkeqUVj3apiBt6YzTHgTsf:  -0.01500000 Waves

2025.01.18 01:55 [3463736] smart account 3MtCto83UgaYLqkeqUVj3apiBt6YzTHgTsf > SELF 0.00000000 Waves

{ "type": 13, "id": "7A3Ha7iLy3rQuNzYPXZLcqU6AMSMg4Jv1okYXwt2a4YU", "fee": 1500000, "feeAssetId": null, "timestamp": 1737154561979, "version": 2, "chainId": 84, "sender": "3MtCto83UgaYLqkeqUVj3apiBt6YzTHgTsf", "senderPublicKey": "7w98hrFimkZ4X8eVspfS6M6P1C8twEuqbXBchKv5zUkn", "proofs": [ "7te45ZPsSinzax2QgdS2V9yVeuA8wb6PiMkNgenCnwwaPdfNiz3N8ChAPiFKJcsBRHZ2MgSyC3xEGiF2zRaJac6" ], "script": "base64:AAIFAAAAAAAAABcIAhIECgIICBIDCgEIEgMKAQgSAwoBCAAAADQBAAAAF3N0YXRpY0tleV9vcmFjbGVBZGRyZXNzAAAAAAIAAAAUc3RhdGljX29yYWNsZUFkZHJlc3MBAAAAFHN0YXRpY0tleV9lZ2dBc3NldElkAAAAAAIAAAARc3RhdGljX2VnZ0Fzc2V0SWQBAAAAGHN0YXRpY0tleV9icmVlZGVyQWRkcmVzcwAAAAACAAAAFXN0YXRpY19icmVlZGVyQWRkcmVzcwEAAAAac3RhdGljS2V5X2luY3ViYXRvckFkZHJlc3MAAAAAAgAAABdzdGF0aWNfaW5jdWJhdG9yQWRkcmVzcwEAAAAZc3RhdGljS2V5X2JhYnlEdWNrQWRkcmVzcwAAAAACAAAAFnN0YXRpY19iYWJ5RHVja0FkZHJlc3MBAAAAGHN0YXRpY0tleV9mYXJtaW5nQWRkcmVzcwAAAAACAAAAGHN0YXRpY19mYXJtaW5nQWRkcmVzc05ldwEAAAAZc3RhdGljS2V5X2NmTWFzdGVyQWRkcmVzcwAAAAACAAAAFnN0YXRpY19jZk1hc3RlckFkZH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AAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAJdGhpcmRVc2VyAAAAAAAAAAABAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACXRoaXJkVXNlcgAAAAAAAAAAAQMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAAl0aGlyZFVzZXIAAAAAAAAAAAEAAAAAAAAAAAAEAAAAD3NpZ25hdHVyZXNDb3VudAkAAGQAAAACCQAAZAAAAAIFAAAAD2ZpcnN0VXNlclNpZ25lZAUAAAAQc2Vjb25kVXNlclNpZ25lZAUAAAAPdGhpcmRVc2VyU2lnbmVkBAAAAAckbWF0Y2gwBQAAAAJ0eAkAAGcAAAACBQAAAA9zaWduYXR1cmVzQ291bnQAAAAAAAAAAAHyOm5D", "height": 3463736, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 28PurJ8i8d4Yid8Go6UAUd8uNaxRP8qbpW8LQLUrwr3t Next: none Diff:
OldNewDifferences
5959
6060
6161 func staticKey_felineBreederAddress () = "static_felineBreederAddress"
62+
63+
64+func staticKey_eagleBreederAddress () = "static_eagleBreederAddress"
65+
66+
67+func staticKey_eagleFarmingAddress () = "static_eagleStakingAddress"
6268
6369
6470 func tryGetBoolean (key) = match getBoolean(this, key) {
156162 func getFelineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineBreederAddress())))
157163
158164
159-func getTrustedAddress () = [getBreederAddress(), getBabyDuckAddress(), getFarmingAddress(), getHuntAddress(), getRebirthAddress(), getTurtleBreederAddress(), getTurtleIncubatorAddress(), getTurtleStakingAddress(), getTurtleRebirthAddress(), getCapacityAddress(), getVeggFarmingAddress(), getMutantFarmingAddress(), getFelineFarmingAddress(), getCanineFarmingAddress(), getCanineBreederAddress(), getFelineBreederAddress()]
165+func getEagleFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_eagleFarmingAddress())))
166+
167+
168+func getEagleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_eagleBreederAddress())))
169+
170+
171+func getTrustedAddress () = [getBreederAddress(), getBabyDuckAddress(), getFarmingAddress(), getHuntAddress(), getRebirthAddress(), getTurtleBreederAddress(), getTurtleIncubatorAddress(), getTurtleStakingAddress(), getTurtleRebirthAddress(), getCapacityAddress(), getVeggFarmingAddress(), getMutantFarmingAddress(), getFelineFarmingAddress(), getCanineFarmingAddress(), getCanineBreederAddress(), getFelineBreederAddress(), getEagleFarmingAddress(), getEagleBreederAddress()]
160172
161173
162174 func masterTryGetBoolean (key) = match getBoolean(getCfMasterAddress(), key) {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func staticKey_oracleAddress () = "static_oracleAddress"
55
66
77 func staticKey_eggAssetId () = "static_eggAssetId"
88
99
1010 func staticKey_breederAddress () = "static_breederAddress"
1111
1212
1313 func staticKey_incubatorAddress () = "static_incubatorAddress"
1414
1515
1616 func staticKey_babyDuckAddress () = "static_babyDuckAddress"
1717
1818
1919 func staticKey_farmingAddress () = "static_farmingAddressNew"
2020
2121
2222 func staticKey_cfMasterAddress () = "static_cfMasterAddress"
2323
2424
2525 func staticKey_huntAddress () = "static_huntAddress"
2626
2727
2828 func staticKey_rebirthAddress () = "static_rebirthAddress"
2929
3030
3131 func staticKey_turtleBreederAddress () = "static_turtleBreederAddress"
3232
3333
3434 func staticKey_turtleIncubatorAddress () = "static_turtleIncubatorAddress"
3535
3636
3737 func staticKey_turtleStakingAddress () = "static_turtleStakingAddress"
3838
3939
4040 func staticKey_turtleRebirthAddress () = "static_turtleRebirthAddress"
4141
4242
4343 func staticKey_capacityAddress () = "static_capacityAddress"
4444
4545
4646 func staticKey_veggFarmingAddress () = "static_veggFarmingAddress"
4747
4848
4949 func staticKey_mutantFarmingAddress () = "static_mutantFarmingAddress"
5050
5151
5252 func staticKey_felineFarmingAddress () = "static_felineStakingAddress"
5353
5454
5555 func staticKey_canineFarmingAddress () = "static_canineStakingAddress"
5656
5757
5858 func staticKey_canineBreederAddress () = "static_canineBreederAddress"
5959
6060
6161 func staticKey_felineBreederAddress () = "static_felineBreederAddress"
62+
63+
64+func staticKey_eagleBreederAddress () = "static_eagleBreederAddress"
65+
66+
67+func staticKey_eagleFarmingAddress () = "static_eagleStakingAddress"
6268
6369
6470 func tryGetBoolean (key) = match getBoolean(this, key) {
6571 case b: Boolean =>
6672 b
6773 case _ =>
6874 false
6975 }
7076
7177
7278 func tryGetInteger (key) = match getInteger(this, key) {
7379 case b: Int =>
7480 b
7581 case _ =>
7682 0
7783 }
7884
7985
8086 func isValidAddress (address) = match addressFromString(address) {
8187 case a: Address =>
8288 true
8389 case _ =>
8490 false
8591 }
8692
8793
8894 func tryGetStringExternal (address,key) = match getString(address, key) {
8995 case a: String =>
9096 a
9197 case _ =>
9298 ""
9399 }
94100
95101
96102 func tryGetString (key) = tryGetStringExternal(this, key)
97103
98104
99105 func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress())))
100106
101107
102108 func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId()))
103109
104110
105111 func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_breederAddress())))
106112
107113
108114 func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_incubatorAddress())))
109115
110116
111117 func getBabyDuckAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_babyDuckAddress())))
112118
113119
114120 func getFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_farmingAddress())))
115121
116122
117123 func getCfMasterAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_cfMasterAddress())))
118124
119125
120126 func getHuntAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_huntAddress())))
121127
122128
123129 func getRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_rebirthAddress())))
124130
125131
126132 func getTurtleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleBreederAddress())))
127133
128134
129135 func getTurtleIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleIncubatorAddress())))
130136
131137
132138 func getTurtleStakingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleStakingAddress())))
133139
134140
135141 func getTurtleRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleRebirthAddress())))
136142
137143
138144 func getCapacityAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_capacityAddress())))
139145
140146
141147 func getVeggFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_veggFarmingAddress())))
142148
143149
144150 func getMutantFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_mutantFarmingAddress())))
145151
146152
147153 func getFelineFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineFarmingAddress())))
148154
149155
150156 func getCanineFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineFarmingAddress())))
151157
152158
153159 func getCanineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineBreederAddress())))
154160
155161
156162 func getFelineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineBreederAddress())))
157163
158164
159-func getTrustedAddress () = [getBreederAddress(), getBabyDuckAddress(), getFarmingAddress(), getHuntAddress(), getRebirthAddress(), getTurtleBreederAddress(), getTurtleIncubatorAddress(), getTurtleStakingAddress(), getTurtleRebirthAddress(), getCapacityAddress(), getVeggFarmingAddress(), getMutantFarmingAddress(), getFelineFarmingAddress(), getCanineFarmingAddress(), getCanineBreederAddress(), getFelineBreederAddress()]
165+func getEagleFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_eagleFarmingAddress())))
166+
167+
168+func getEagleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_eagleBreederAddress())))
169+
170+
171+func getTrustedAddress () = [getBreederAddress(), getBabyDuckAddress(), getFarmingAddress(), getHuntAddress(), getRebirthAddress(), getTurtleBreederAddress(), getTurtleIncubatorAddress(), getTurtleStakingAddress(), getTurtleRebirthAddress(), getCapacityAddress(), getVeggFarmingAddress(), getMutantFarmingAddress(), getFelineFarmingAddress(), getCanineFarmingAddress(), getCanineBreederAddress(), getFelineBreederAddress(), getEagleFarmingAddress(), getEagleBreederAddress()]
160172
161173
162174 func masterTryGetBoolean (key) = match getBoolean(getCfMasterAddress(), key) {
163175 case b: Boolean =>
164176 b
165177 case _ =>
166178 false
167179 }
168180
169181
170182 func isTestEnv () = tryGetBoolean("TESTENV")
171183
172184
173185 @Callable(i)
174186 func addRefKey (refererAddress,refererKey) = if ((i.caller != this))
175187 then throw("admin only")
176188 else {
177189 let refStateKey = (("key_" + refererKey) + "_refererAddress")
178190 if ((tryGetString(refStateKey) == ""))
179191 then [StringEntry(refStateKey, refererAddress), StringEntry(((("address_" + refererAddress) + "_refererKey_") + refererKey), refererKey)]
180192 else throw((("The ref key \"" + refererKey) + "\" is already registered"))
181193 }
182194
183195
184196
185197 @Callable(i)
186198 func whitelistAddress (refererAddress) = if ((i.caller != this))
187199 then throw("RF: Only for admin!")
188200 else [BooleanEntry((refererAddress + "_whitelisted"), true)]
189201
190202
191203
192204 @Callable(i)
193205 func refPayment (refererKey) = {
194206 let dao = if (isTestEnv())
195207 then "3Mx9X6Dpj3thXL2So77C4DG9AmBM4WX8Mvw"
196208 else "3PEwRcYNAUtoFvKpBhKoiwajnZfdoDR6h4h"
197209 let alreadySend = tryGetInteger("dao_refund")
198210 let sendFundsToDao = $Tuple2([ScriptTransfer(addressFromStringValue(dao), i.payments[0].amount, i.payments[0].assetId), IntegerEntry("dao_refund", (alreadySend + i.payments[0].amount))], true)
199211 let referalAddress = toString(i.originCaller)
200212 if ((indexOf(getTrustedAddress(), i.caller) == unit))
201213 then throw("RC: This method can be called only by farming and incubator dApps")
202214 else if (if ((refererKey == ""))
203215 then (tryGetString((("address_" + referalAddress) + "_referedBy")) == "")
204216 else false)
205217 then sendFundsToDao
206218 else if (masterTryGetBoolean(("farm_" + referalAddress)))
207219 then sendFundsToDao
208220 else {
209221 let givenReferer = match getString(this, (("key_" + refererKey) + "_refererAddress")) {
210222 case x: String =>
211223 x
212224 case _ =>
213225 refererKey
214226 }
215227 let refererAddress = match getString(this, (("address_" + referalAddress) + "_referedBy")) {
216228 case x: String =>
217229 x
218230 case _ =>
219231 givenReferer
220232 }
221233 let refAmount = i.payments[0].amount
222234 if ((i.payments[0].assetId != getEggAssetId()))
223235 then throw("Don't try to cheat the system!")
224236 else if ((tryGetBoolean((refererAddress + "_whitelisted")) == false))
225237 then sendFundsToDao
226238 else if ((addressFromString(refererAddress) == unit))
227239 then sendFundsToDao
228240 else {
229241 let refererAddressValue = addressFromStringValue(refererAddress)
230242 let referalAddressValue = addressFromStringValue(referalAddress)
231243 let paymentForReferer = refAmount
232244 let refererEarnedReward = (("address_" + refererAddress) + "_earnedReward")
233245 let referalDeliveredReward = (((("referer_" + refererAddress) + "_referal_") + referalAddress) + "_deliveredReward")
234246 if ((refererAddress == referalAddress))
235247 then sendFundsToDao
236248 else $Tuple2([StringEntry((("address_" + referalAddress) + "_referedBy"), refererAddress), IntegerEntry(refererEarnedReward, (tryGetInteger(refererEarnedReward) + paymentForReferer)), IntegerEntry(referalDeliveredReward, (tryGetInteger(referalDeliveredReward) + paymentForReferer)), IntegerEntry((((("referer_" + refererAddress) + "_referal_") + referalAddress) + "_amount"), (tryGetInteger((((("referer_" + refererAddress) + "_referal_") + referalAddress) + "_amount")) + 1)), ScriptTransfer(refererAddressValue, paymentForReferer, getEggAssetId())], true)
237249 }
238250 }
239251 }
240252
241253
242254
243255 @Callable(i)
244256 func configureOracle (oracle) = if ((i.caller != this))
245257 then throw("RCCO: admin only")
246258 else [StringEntry(staticKey_oracleAddress(), oracle)]
247259
248260
249261 @Verifier(tx)
250262 func verify () = if (isTestEnv())
251263 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
252264 else {
253265 let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4'
254266 let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8'
255267 let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3'
256268 let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser))
257269 then 1
258270 else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser))
259271 then 1
260272 else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser))
261273 then 1
262274 else 0
263275 let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser))
264276 then 1
265277 else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser))
266278 then 1
267279 else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser))
268280 then 1
269281 else 0
270282 let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser))
271283 then 1
272284 else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser))
273285 then 1
274286 else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser))
275287 then 1
276288 else 0
277289 let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned)
278290 match tx {
279291 case _ =>
280292 (signaturesCount >= 1)
281293 }
282294 }
283295

github/deemru/w8io/169f3d6 
41.15 ms