tx · DxuVsDH6QDqA6gQ6KZk8Wb8mT3fkZhksscK9YHbp1JNk

3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ:  -0.01000000 Waves

2022.06.29 18:19 [2117896] smart account 3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ > SELF 0.00000000 Waves

{ "type": 13, "id": "DxuVsDH6QDqA6gQ6KZk8Wb8mT3fkZhksscK9YHbp1JNk", "fee": 1000000, "feeAssetId": null, "timestamp": 1656516012088, "version": 2, "chainId": 84, "sender": "3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ", "senderPublicKey": "BhRnrwd6wVHSkSaWXCjQRjaoXcpCdUW2hkJD6V7uVDxN", "proofs": [ "5bykQTCk4ypMj2iotyVjSFRvKQ9tTckhZBmVGcEEKguKwcScs1A4XWFzpZTnbiDujaRSFC48Gx8gXbBmcCjKWnxV" ], "script": "base64:AAIFAAAAAAAAAEwIAhIAEgQKAggBEgQKAggBEgMKAQESBQoDCAgBEgQKAggBEgQKAggBEgASBAoCCAESAwoBCBIECgIIARIECgIIARIECgIIARIDCgEBAAAAHAAAAAAKc2hpbnl3Z2dpZAEAAAAgiWnPAv+2urnUcZbXebiZdiawdNB3efRzbobw9HOfBiYAAAAAD3RyZWFzdXJ5QWRkcmVzcwEAAAAaAVRl+PAWCwTAWUJwGp5IjJf/ftwcYvLdu/0AAAAADWFzc2V0c0FkZHJlc3MBAAAAGgFUy+a0wXfXHSctaxYQS8qRSOspiwoalaeaAAAAABJtYXJrZXRwbGFjZUFkZHJlc3MBAAAAGgFUHSG5k/H8GMOnG0lxFkOWUXTrrFQuJbzvAAAAABRjb25maWd1cmF0aW9uQWRkcmVzcwEAAAAaAVTbIMuXkVY/Qg5sp2U1gothv7V0cji00C4AAAAADm5hdGlvbnNBZGRyZXNzAQAAABoBVE2F6N70+ERrWRA7cF/Dt7llDlH1REZtoAAAAAALYWRtaW5XYWxsZXQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQ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V3YXJkc1dhbGxldAkAAGkAAAACCQAAaAAAAAIFAAAADmFzc2V0QnVpbGRDb3N0AAAAAAAAAABBAAAAAAAAAABkCQAFFAAAAAIJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAALYWRtaW5XYWxsZXQFAAAADVRvQWRtaW5XYWxsZXQFAAAACnNoaW55d2dnaWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAWZGFpbHlHYW1lUmV3YXJkc1dhbGxldAUAAAATVG9HYW1lUmV3YXJkc1dhbGxldAUAAAAKc2hpbnl3Z2dpZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABlkYWlseVN0YWtpbmdSZXdhcmRzV2FsbGV0BQAAABZUb1N0YWtpbmdSZXdhcmRzV2FsbGV0BQAAAApzaGlueXdnZ2lkBQAAAANuaWwFAAAADmFzc2V0QnVpbGRDb3N0AAAAALrsX2M=", "height": 2117896, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H36j4z1WCLEZafwLLMLhDXRkzUSRgiw9ktpJjUGe8ZBt Next: DZVd4ggu1TiyRX38qv6o3wgMm1tvWGSqQFSFgzQZeyom Diff:
OldNewDifferences
248248
249249
250250 @Callable(i)
251-func addRewards (addr) = if (!(checkAdmin(i.caller)))
252- then throw("you are not authorized to perform this operation")
253- else {
254- let $l = addr
255- let $s = size($l)
256- let $acc0 = nil
257- func $f0_1 ($a,$i) = if (($i >= $s))
258- then $a
259- else insertRedeem($a, $l[$i])
251+func addRewards (addr) = {
252+ let chunks = split(addr, "#")
253+ if (!(checkAdmin(i.caller)))
254+ then throw("you are not authorized to perform this operation")
255+ else {
256+ let $l = chunks
257+ let $s = size($l)
258+ let $acc0 = nil
259+ func $f0_1 ($a,$i) = if (($i >= $s))
260+ then $a
261+ else insertRedeem($a, $l[$i])
260262
261- func $f0_2 ($a,$i) = if (($i >= $s))
262- then $a
263- else throw("List size exceeds 30")
263+ func $f0_2 ($a,$i) = if (($i >= $s))
264+ then $a
265+ else throw("List size exceeds 30")
264266
265- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
266- }
267+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
268+ }
269+ }
267270
268271
269272
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let shinywggid = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf'
55
66 let treasuryAddress = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ'
77
88 let assetsAddress = base58'3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb'
99
1010 let marketplaceAddress = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A'
1111
1212 let configurationAddress = base58'3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1'
1313
1414 let nationsAddress = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy'
1515
1616 let adminWallet = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9")
1717
1818 let dailyGameRewardsWallet = addressFromStringValue("3MuSrXTTiwo9bdoD6FeaBpMUYMiU5saDv2U")
1919
2020 let dailyStakingRewardsWallet = addressFromStringValue("3Mv3mr3uNXdpgkVPApbGEJjMQXqau37DY5i")
2121
2222 func checkAdmin (caller) = if (if (if (if (if ((caller == adminWallet))
2323 then true
2424 else (caller == this))
2525 then true
2626 else (caller.bytes == assetsAddress))
2727 then true
2828 else (caller.bytes == treasuryAddress))
2929 then true
3030 else (caller.bytes == marketplaceAddress))
3131 then true
3232 else (caller.bytes == nationsAddress)
3333
3434
3535 func tryGetInteger (key) = match getInteger(this, key) {
3636 case b: Int =>
3737 b
3838 case _ =>
3939 0
4040 }
4141
4242
4343 func tryGetBoolean (key) = match getBoolean(this, key) {
4444 case b: Boolean =>
4545 b
4646 case _ =>
4747 false
4848 }
4949
5050
5151 func tryGetString (key) = match getString(this, key) {
5252 case b: String =>
5353 b
5454 case _ =>
5555 ""
5656 }
5757
5858
5959 func getALKey (Name,Level) = ((Name + "_lvl") + toString(Level))
6060
6161
6262 func confTryGetInteger (key) = match getInteger(Address(configurationAddress), key) {
6363 case b: Int =>
6464 b
6565 case _ =>
6666 0
6767 }
6868
6969
7070 func confTryGetString (key) = match getString(Address(configurationAddress), key) {
7171 case b: String =>
7272 b
7373 case _ =>
7474 ""
7575 }
7676
7777
7878 func confTryGetBoolean (key) = match getBoolean(Address(configurationAddress), key) {
7979 case b: Boolean =>
8080 b
8181 case _ =>
8282 false
8383 }
8484
8585
8686 func getTreasuryKey (nationid) = (nationid + "_Treasury")
8787
8888
8989 func treasuryTryGetInteger (key) = match getInteger(Address(treasuryAddress), key) {
9090 case b: Int =>
9191 b
9292 case _ =>
9393 0
9494 }
9595
9696
9797 func nationsTryGetInteger (key) = match getInteger(Address(nationsAddress), key) {
9898 case b: Int =>
9999 b
100100 case _ =>
101101 0
102102 }
103103
104104
105105 func nationsTryGetBoolean (key) = match getBoolean(Address(nationsAddress), key) {
106106 case b: Boolean =>
107107 b
108108 case _ =>
109109 false
110110 }
111111
112112
113113 func nationsTryGetString (key) = match getString(Address(nationsAddress), key) {
114114 case b: String =>
115115 b
116116 case _ =>
117117 ""
118118 }
119119
120120
121121 func getAssetOwnerKeyString (assetId) = (assetId + "_Owner")
122122
123123
124124 func internalDeposit (addressStr,amountIn) = {
125125 let amount = tryGetInteger((addressStr + "_Deposit"))
126126 [IntegerEntry((addressStr + "_Deposit"), (amount + amountIn))]
127127 }
128128
129129
130130 func internalPay (addressStr,amount) = {
131131 let deposited = tryGetInteger((addressStr + "_Deposit"))
132132 if ((0 > (deposited - amount)))
133133 then throw("Not enough deposit.")
134134 else if (((deposited - amount) == 0))
135135 then [DeleteEntry((addressStr + "_Deposit"))]
136136 else [IntegerEntry((addressStr + "_Deposit"), (deposited - amount))]
137137 }
138138
139139
140140 func internalReserve (addressStr,amount) = {
141141 let reservedAmount = tryGetInteger((addressStr + "_Reserved"))
142142 IntegerEntry((addressStr + "_Reserved"), (reservedAmount + amount))
143143 }
144144
145145
146146 func internalTransfer (fromAddress,toAddress,amount) = (internalPay(fromAddress, amount) ++ internalDeposit(toAddress, amount))
147147
148148
149149 func insertRedeem (accum,nextValue) = {
150150 let val = split(nextValue, "_")
151151 let addr = val[0]
152152 let amnt = val[1]
153153 (accum :+ internalReserve(addr, parseIntValue(amnt)))
154154 }
155155
156156
157157 @Callable(i)
158158 func Deposit () = {
159159 let addressStr = toString(i.originCaller)
160160 let pmt = i.payments[0]
161161 if ((pmt == pmt))
162162 then {
163163 let amountIn = value(i.payments[0].amount)
164164 if ((amountIn == amountIn))
165165 then {
166166 let assetIn = pmt.assetId
167167 if ((assetIn == assetIn))
168168 then if ((assetIn != shinywggid))
169169 then throw("Only $HEG payments allowed")
170170 else {
171171 let amount = tryGetInteger((addressStr + "_Deposit"))
172172 $Tuple2(internalDeposit(addressStr, (amount + amountIn)), (amount + amountIn))
173173 }
174174 else throw("Strict value is not equal to itself.")
175175 }
176176 else throw("Strict value is not equal to itself.")
177177 }
178178 else throw("Strict value is not equal to itself.")
179179 }
180180
181181
182182
183183 @Callable(i)
184184 func NoPaymentDeposit (addressStr,amountIn) = if (!(checkAdmin(i.caller)))
185185 then throw("")
186186 else {
187187 let amount = tryGetInteger((addressStr + "_Deposit"))
188188 $Tuple2(internalDeposit(addressStr, (amount + amountIn)), (amount + amountIn))
189189 }
190190
191191
192192
193193 @Callable(i)
194194 func Pay (addressStr,amount) = if (!(checkAdmin(i.caller)))
195195 then throw("you are not authorized to perform this operation")
196196 else $Tuple2(internalPay(addressStr, amount), amount)
197197
198198
199199
200200 @Callable(i)
201201 func CallerPay (amount) = {
202202 let callerAddr = toString(i.caller)
203203 internalPay(callerAddr, amount)
204204 }
205205
206206
207207
208208 @Callable(i)
209209 func transferCoins (fromAddress,toAddress,amount) = if (if ((i.caller != adminWallet))
210210 then (i.caller.bytes != assetsAddress)
211211 else false)
212212 then throw("you are not authorized to perform this operation")
213213 else $Tuple2(internalTransfer(fromAddress, toAddress, amount), amount)
214214
215215
216216
217217 @Callable(i)
218218 func callerTransferCoins (toAddress,amount) = internalTransfer(toString(i.caller), toAddress, amount)
219219
220220
221221
222222 @Callable(i)
223223 func arbitraryAddCoins (toAddress,amount) = if (!(checkAdmin(i.caller)))
224224 then throw("you are not authorized to perform this operation")
225225 else $Tuple2(internalDeposit(toAddress, amount), amount)
226226
227227
228228
229229 @Callable(i)
230230 func Redeem () = {
231231 let addressStr = toString(i.caller)
232232 let reservedAmount = tryGetInteger((addressStr + "_Reserved"))
233233 if ((reservedAmount == 0))
234234 then throw("Nothing to redeem")
235235 else [DeleteEntry((addressStr + "_Reserved")), ScriptTransfer(i.caller, reservedAmount, shinywggid)]
236236 }
237237
238238
239239
240240 @Callable(i)
241241 func addReward (addressStr,amount) = if (!(checkAdmin(i.caller)))
242242 then throw("you are not authorized to perform this operation")
243243 else {
244244 let reservedAmount = tryGetInteger((addressStr + "_Reserved"))
245245 $Tuple2([IntegerEntry((addressStr + "_Reserved"), (reservedAmount + amount))], (reservedAmount + amount))
246246 }
247247
248248
249249
250250 @Callable(i)
251-func addRewards (addr) = if (!(checkAdmin(i.caller)))
252- then throw("you are not authorized to perform this operation")
253- else {
254- let $l = addr
255- let $s = size($l)
256- let $acc0 = nil
257- func $f0_1 ($a,$i) = if (($i >= $s))
258- then $a
259- else insertRedeem($a, $l[$i])
251+func addRewards (addr) = {
252+ let chunks = split(addr, "#")
253+ if (!(checkAdmin(i.caller)))
254+ then throw("you are not authorized to perform this operation")
255+ else {
256+ let $l = chunks
257+ let $s = size($l)
258+ let $acc0 = nil
259+ func $f0_1 ($a,$i) = if (($i >= $s))
260+ then $a
261+ else insertRedeem($a, $l[$i])
260262
261- func $f0_2 ($a,$i) = if (($i >= $s))
262- then $a
263- else throw("List size exceeds 30")
263+ func $f0_2 ($a,$i) = if (($i >= $s))
264+ then $a
265+ else throw("List size exceeds 30")
264266
265- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
266- }
267+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
268+ }
269+ }
267270
268271
269272
270273 @Callable(i)
271274 func increaseNationWallet (NationKey,amount) = if (!(checkAdmin(i.caller)))
272275 then throw("you are not authorized to perform this operation")
273276 else {
274277 let key = getTreasuryKey(NationKey)
275278 let reservedAmount = tryGetInteger(key)
276279 $Tuple2([IntegerEntry(key, (reservedAmount + amount))], (reservedAmount + amount))
277280 }
278281
279282
280283
281284 @Callable(i)
282285 func decreaseNationWallet (NationKey,amount) = if (!(checkAdmin(i.caller)))
283286 then throw("you are not authorized to perform this operation")
284287 else {
285288 let key = getTreasuryKey(NationKey)
286289 let reservedAmount = tryGetInteger(key)
287290 $Tuple2([IntegerEntry(key, (reservedAmount - amount))], amount)
288291 }
289292
290293
291294
292295 @Callable(i)
293296 func adminTransfer (toaddr,amount) = if (!(checkAdmin(i.caller)))
294297 then throw("you are not authorized to perform this operation")
295298 else $Tuple2([ScriptTransfer(addressFromStringValue(toaddr), amount, shinywggid)], amount)
296299
297300
298301
299302 @Callable(i)
300303 func distributeNationPayRewards (assetBuildCost) = if (!(checkAdmin(i.caller)))
301304 then throw("you are not authorized to perform this operation")
302305 else {
303306 let ToAdminWallet = ((assetBuildCost * 5) / 100)
304307 let ToGameRewardsWallet = ((assetBuildCost * 10) / 100)
305308 let ToStakingRewardsWallet = ((assetBuildCost * 65) / 100)
306309 $Tuple2([ScriptTransfer(adminWallet, ToAdminWallet, shinywggid), ScriptTransfer(dailyGameRewardsWallet, ToGameRewardsWallet, shinywggid), ScriptTransfer(dailyStakingRewardsWallet, ToStakingRewardsWallet, shinywggid)], assetBuildCost)
307310 }
308311
309312

github/deemru/w8io/026f985 
48.05 ms