tx · 4xabMYaYSu6mq7EHcUw49MubX22BPp7Ge2WEWPpvc6AF 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy: -0.03600000 Waves 2023.08.17 03:24 [2713866] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves
{ "type": 13, "id": "4xabMYaYSu6mq7EHcUw49MubX22BPp7Ge2WEWPpvc6AF", "fee": 3600000, "feeAssetId": null, "timestamp": 1692231884971, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "4MfUZcobVh7NePYbB4PXXkE4ew3e9DUdyN99fPPDjuc5CFJR7UyvmeUP7qfzX12ZaTkru1hajapRNEjaZwNVsLWR" ], "script": "base64:BgJcCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBGBIDCgEIEgMKARgSAwoBGBIDCgEYEgMKARgSAwoBGBIDCgEIEgASAwoBCBIDCgEBEgASBAoCAQi2AQACTTYAwIQ9AAJNOACAwtcvAAhNSUxMSU9ONgCAgOmDsd4WAA5NQVJLRVRJTkdTSEFSRQCgjQYACVRFQU1TSEFSRQDAmgwADUFDVElWSVRZU0hBUkUAoI0GAAtQTEFZRVJTSEFSRQCAtRgACllFQVJNSUxMSVMAgIbrx3UAA0RBWQCAuJkpABBtYXJrZXRpbmdBZGRyS2V5Ag1tYXJrZXRpbmdBZGRyAAt0ZWFtQWRkcktleQIIdGVhbUFkZHIAFGxhc3RNYXJrZXRpbmdUaW1lS2V5AhlsYXN0Q2xhaW1lZFRpbWVfbWFya2V0aW5nABZtYXJrZXRpbmdBbW91bnRMZWZ0S2V5AhNtYXJrZXRpbmdBbW91bnRMZWZ0AA9sYXN0VGVhbVRpbWVLZXkCFGxhc3RDbGFpbWVkVGltZV90ZWFtABF0ZWFtQW1vdW50TGVmdEtleQIOdGVhbUFt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AMwIAgkApAMBBQ5iZXN0RHVja1Jlc3VsdAUDbmlsAgFfBQNuaWwAOeZ3yw==", "height": 2713866, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BTv1RiP1iUEozxPpFZ6U1dRzbm2SkgpHSXrVgzfkdNYP Next: G1fzDyYZWpRFir3HwmZRBwUBjR3Uy7hnqxmonzG9VS6c Diff:
Old | New | Differences | |
---|---|---|---|
211 | 211 | ||
212 | 212 | ||
213 | 213 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
214 | + | ||
215 | + | ||
216 | + | func keyDuckBuffs (duckAssetId) = ("duckBuffs_" + duckAssetId) | |
214 | 217 | ||
215 | 218 | ||
216 | 219 | func maxHealth (level) = (100 + level) | |
647 | 650 | let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0) | |
648 | 651 | let freePoints = valueOrElse(getInteger(stakingContract, keyDuckFreePoints(duckAssetId)), 0) | |
649 | 652 | let equipm = valueOrElse(getString(stakingContract, keyDuckEquipment(duckAssetId)), ";_;_;_;_;_;") | |
650 | - | [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(duckInf._1)), ("%s%s__name__" + duckInf._2), ("%s%s__location__" + duckInf._3), ("%s%d__health__" + toString(duckInf._4)), ("%s%d__maxHealth__" + toString(maxHealth(lvl))), ("%s%s__characteristics__" + chars), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__backPack__" + duckInf._5), ("%s%s__equipment__" + equipm)] | |
653 | + | let buffs = valueOrElse(getString(stakingContract, keyDuckBuffs(duckAssetId)), "0_0_0_0_0") | |
654 | + | [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(duckInf._1)), ("%s%s__name__" + duckInf._2), ("%s%s__location__" + duckInf._3), ("%s%d__health__" + toString(duckInf._4)), ("%s%d__maxHealth__" + toString(maxHealth(lvl))), ("%s%s__characteristics__" + chars), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__backPack__" + duckInf._5), ("%s%s__equipment__" + equipm), ("%s%s__buffs__" + buffs)] | |
651 | 655 | } | |
652 | 656 | ||
653 | 657 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let M6 = 1000000 | |
5 | 5 | ||
6 | 6 | let M8 = 100000000 | |
7 | 7 | ||
8 | 8 | let MILLION6 = 100000000000000 | |
9 | 9 | ||
10 | 10 | let MARKETINGSHARE = 100000 | |
11 | 11 | ||
12 | 12 | let TEAMSHARE = 200000 | |
13 | 13 | ||
14 | 14 | let ACTIVITYSHARE = 100000 | |
15 | 15 | ||
16 | 16 | let PLAYERSHARE = 400000 | |
17 | 17 | ||
18 | 18 | let YEARMILLIS = 31557600000 | |
19 | 19 | ||
20 | 20 | let DAY = 86400000 | |
21 | 21 | ||
22 | 22 | let marketingAddrKey = "marketingAddr" | |
23 | 23 | ||
24 | 24 | let teamAddrKey = "teamAddr" | |
25 | 25 | ||
26 | 26 | let lastMarketingTimeKey = "lastClaimedTime_marketing" | |
27 | 27 | ||
28 | 28 | let marketingAmountLeftKey = "marketingAmountLeft" | |
29 | 29 | ||
30 | 30 | let lastTeamTimeKey = "lastClaimedTime_team" | |
31 | 31 | ||
32 | 32 | let teamAmountLeftKey = "teamAmountLeft" | |
33 | 33 | ||
34 | 34 | let lastActivitiesTimeKey = "lastClaimedTime_activities" | |
35 | 35 | ||
36 | 36 | let actAmountLeftKey = "activitiesAmountLeft" | |
37 | 37 | ||
38 | 38 | let stakersAmountLeftKey = "stakersAmountLeft" | |
39 | 39 | ||
40 | 40 | func keyLastClaimedTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func distributionByPeriod (period) = fraction(MILLION6, (PLAYERSHARE * (period + 1)), (6 * M6)) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | let wlgIssueTimeKey = "wlg_issueTime" | |
47 | 47 | ||
48 | 48 | let wlgIssuedAmountKey = "wlg_issuedAmount" | |
49 | 49 | ||
50 | 50 | let zbIssuedAmountKey = "zbill_issuedAmount" | |
51 | 51 | ||
52 | 52 | let idxWlgAmount = 0 | |
53 | 53 | ||
54 | 54 | let idxWlgPrice = 1 | |
55 | 55 | ||
56 | 56 | let idxWlgFunds = 2 | |
57 | 57 | ||
58 | 58 | let idxWlgEconomy = 3 | |
59 | 59 | ||
60 | 60 | let idxWlgActivity = 4 | |
61 | 61 | ||
62 | 62 | let idxWlgArbitrage = 5 | |
63 | 63 | ||
64 | 64 | let idxWlgPool = 6 | |
65 | 65 | ||
66 | 66 | let idxWlgIssueTime = 7 | |
67 | 67 | ||
68 | 68 | let idxWlgLastMTATime = 8 | |
69 | 69 | ||
70 | 70 | let idxWlgMarketingTotal = 9 | |
71 | 71 | ||
72 | 72 | let idxWlgMarketingAmLeft = 10 | |
73 | 73 | ||
74 | 74 | let idxWlgMarketingAmAvailNow = 11 | |
75 | 75 | ||
76 | 76 | let idxWlgMarketingWlgold = 12 | |
77 | 77 | ||
78 | 78 | let idxWlgTeamTotal = 13 | |
79 | 79 | ||
80 | 80 | let idxWlgTeamAmLeft = 14 | |
81 | 81 | ||
82 | 82 | let idxWlgTeamAmAvailNow = 15 | |
83 | 83 | ||
84 | 84 | let idxWlgTeamWlgold = 16 | |
85 | 85 | ||
86 | 86 | let idxWlgActTotal = 17 | |
87 | 87 | ||
88 | 88 | let idxWlgActAmLeft = 18 | |
89 | 89 | ||
90 | 90 | let idxWlgActAmAvailNow = 19 | |
91 | 91 | ||
92 | 92 | let idxWlgActWlgold = 20 | |
93 | 93 | ||
94 | 94 | let idxWlgCurPeriod = 21 | |
95 | 95 | ||
96 | 96 | let idxWlgAmLeftTotal = 22 | |
97 | 97 | ||
98 | 98 | let idxWlgCurPeriodDistribution = 23 | |
99 | 99 | ||
100 | 100 | let idxWlgLastUserTime = 24 | |
101 | 101 | ||
102 | 102 | let idxWlgUserAmAvailNow = 25 | |
103 | 103 | ||
104 | 104 | let idxWlgSLandDailyAmount = 26 | |
105 | 105 | ||
106 | 106 | let idxWlgInvestFundAmount = 27 | |
107 | 107 | ||
108 | 108 | let dappRest = 0 | |
109 | 109 | ||
110 | 110 | let dappStaking = 1 | |
111 | 111 | ||
112 | 112 | let dappEconomy = 2 | |
113 | 113 | ||
114 | 114 | let dappWlg = 4 | |
115 | 115 | ||
116 | 116 | let dappPuzzle = 5 | |
117 | 117 | ||
118 | 118 | let dappInvestFund = 6 | |
119 | 119 | ||
120 | 120 | func getPieces (userAddrStrOrEmpty,stakingContract) = { | |
121 | 121 | let props = split(valueOrElse(getString(stakingContract, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
122 | 122 | func adder (acc,item) = (acc + parseIntValue(item)) | |
123 | 123 | ||
124 | 124 | let totalPower = { | |
125 | 125 | let $l = props | |
126 | 126 | let $s = size($l) | |
127 | 127 | let $acc0 = 0 | |
128 | 128 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
129 | 129 | then $a | |
130 | 130 | else adder($a, $l[$i]) | |
131 | 131 | ||
132 | 132 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
133 | 133 | then $a | |
134 | 134 | else throw("List size exceeds 6") | |
135 | 135 | ||
136 | 136 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
137 | 137 | } | |
138 | 138 | let usersPower = valueOrElse(getInteger(stakingContract, ("stakedPiecesByOwner_" + userAddrStrOrEmpty)), 0) | |
139 | 139 | [totalPower, usersPower] | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = { | |
144 | 144 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet") | |
145 | 145 | let economyUsd = assetBalance(contracts[dappEconomy], usdtId) | |
146 | 146 | let restUsd = assetBalance(contracts[dappRest], usdtId) | |
147 | 147 | let wlgUsd = (assetBalance(contracts[dappWlg], usdtId) - usdtBalanceCorrection) | |
148 | 148 | let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId) | |
149 | 149 | let investFundContract = contracts[dappInvestFund] | |
150 | 150 | let investFundTotal = (assetBalance(investFundContract, usdtId) + valueOrElse(getInteger(investFundContract, zbIssuedAmountKey), 0)) | |
151 | 151 | let totalFundsUsd = ((economyUsd + wlgUsd) + investFundTotal) | |
152 | 152 | let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet") | |
153 | 153 | let now = lastBlock.timestamp | |
154 | 154 | let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized") | |
155 | 155 | let marketingTotal = fraction(MILLION6, MARKETINGSHARE, M6) | |
156 | 156 | let marketingAmountLeft = valueOrElse(getInteger(contracts[dappWlg], marketingAmountLeftKey), marketingTotal) | |
157 | 157 | let lastMarketingTime = valueOrElse(getInteger(contracts[dappWlg], lastMarketingTimeKey), issueTime) | |
158 | 158 | let marketingAddr = addressFromStringValue(value(getString(contracts[dappWlg], marketingAddrKey))) | |
159 | 159 | let marketingAmountAvailableNow = min([fraction(marketingTotal, (now - lastMarketingTime), YEARMILLIS), marketingAmountLeft]) | |
160 | 160 | let marketingWlgold = assetBalance(marketingAddr, wlgId) | |
161 | 161 | let teamTotal = fraction(MILLION6, TEAMSHARE, M6) | |
162 | 162 | let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal) | |
163 | 163 | let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime) | |
164 | 164 | let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey))) | |
165 | 165 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft]) | |
166 | 166 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
167 | 167 | let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6) | |
168 | 168 | let actAmountLeft = valueOrElse(getInteger(contracts[dappWlg], actAmountLeftKey), actTotal) | |
169 | 169 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dappWlg], lastActivitiesTimeKey), issueTime) | |
170 | 170 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft]) | |
171 | 171 | let actWlgold = assetBalance(contracts[dappRest], wlgId) | |
172 | 172 | let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUser(userAddrOpt)), issueTime) | |
173 | 173 | let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS) | |
174 | 174 | let nowLimited = min([now, (issueTime + (3 * YEARMILLIS))]) | |
175 | 175 | let curPeriod = min([((now - issueTime) / YEARMILLIS), 2]) | |
176 | 176 | let eff = getPieces(userAddrOpt, contracts[dappStaking]) | |
177 | 177 | let curPeriodDistribution = distributionByPeriod(curPeriod) | |
178 | 178 | let userAmount = fraction(if ((lastUserPeriod == curPeriod)) | |
179 | 179 | then fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEARMILLIS) | |
180 | 180 | else if ((lastUserPeriod == (curPeriod - 1))) | |
181 | 181 | then (fraction(distributionByPeriod((curPeriod - 1)), ((issueTime + (YEARMILLIS * curPeriod)) - lastUserTime), YEARMILLIS) + fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)) | |
182 | 182 | else ((fraction(distributionByPeriod((curPeriod - 2)), ((issueTime + (YEARMILLIS * (curPeriod - 1))) - lastUserTime), YEARMILLIS) + distributionByPeriod((curPeriod - 1))) + fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)), eff[1], eff[0]) | |
183 | 183 | let sLandDailyAmount = fraction(fraction(curPeriodDistribution, DAY, YEARMILLIS), 25, eff[0]) | |
184 | 184 | let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0) | |
185 | 185 | [issuedAmount, fraction(totalFundsUsd, M8, issuedAmount), totalFundsUsd, economyUsd, restUsd, wlgUsd, puzzleUsd, issueTime, lastMarketingTime, marketingTotal, marketingAmountLeft, marketingAmountAvailableNow, marketingWlgold, teamTotal, teamAmountLeft, teamAmountAvailableNow, teamWlgold, actTotal, actAmountLeft, actAmountAvailableNow, actWlgold, curPeriod, amountLeftTotal, curPeriodDistribution, lastUserTime, userAmount, sLandDailyAmount, investFundTotal] | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func keyDuckEquipment (duckAssetId) = ("duckEquipment_" + duckAssetId) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func keyUserXP (addr) = ("userXP_" + addr) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
214 | + | ||
215 | + | ||
216 | + | func keyDuckBuffs (duckAssetId) = ("duckBuffs_" + duckAssetId) | |
214 | 217 | ||
215 | 218 | ||
216 | 219 | func maxHealth (level) = (100 + level) | |
217 | 220 | ||
218 | 221 | ||
219 | 222 | let ARTPRESALE = "PRESALE" | |
220 | 223 | ||
221 | 224 | let ARTONBOARD = "ONBOARD" | |
222 | 225 | ||
223 | 226 | let NUMRES = 6 | |
224 | 227 | ||
225 | 228 | let DAILYRESBYPIECE = 3456000 | |
226 | 229 | ||
227 | 230 | let DAYMILLIS = 86400000 | |
228 | 231 | ||
229 | 232 | let WHMULTIPLIER = 10000000000 | |
230 | 233 | ||
231 | 234 | let RESOURCEPRICEMIN = 39637 | |
232 | 235 | ||
233 | 236 | let ESMAXPACKAGES = 3 | |
234 | 237 | ||
235 | 238 | let ESBUYCOEF = 4 | |
236 | 239 | ||
237 | 240 | let ESSELLCOEF = 10 | |
238 | 241 | ||
239 | 242 | let COEFF2MAT = 10000000 | |
240 | 243 | ||
241 | 244 | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_30_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_50_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_70_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_"] | |
242 | 245 | ||
243 | 246 | let rIdxCoeff = 6 | |
244 | 247 | ||
245 | 248 | let PRODUCTPKGSIZE = 10 | |
246 | 249 | ||
247 | 250 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
248 | 251 | ||
249 | 252 | ||
250 | 253 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
251 | 254 | ||
252 | 255 | ||
253 | 256 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
254 | 257 | ||
255 | 258 | ||
256 | 259 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
257 | 260 | ||
258 | 261 | ||
259 | 262 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
260 | 263 | ||
261 | 264 | ||
262 | 265 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
263 | 266 | ||
264 | 267 | ||
265 | 268 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
266 | 269 | ||
267 | 270 | ||
268 | 271 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
269 | 272 | ||
270 | 273 | ||
271 | 274 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
272 | 275 | ||
273 | 276 | ||
274 | 277 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
275 | 278 | ||
276 | 279 | ||
277 | 280 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
278 | 281 | ||
279 | 282 | ||
280 | 283 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
281 | 284 | ||
282 | 285 | ||
283 | 286 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
284 | 287 | ||
285 | 288 | ||
286 | 289 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
287 | 290 | ||
288 | 291 | ||
289 | 292 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
290 | 293 | ||
291 | 294 | ||
292 | 295 | func keyBlocked () = "contractsBlocked" | |
293 | 296 | ||
294 | 297 | ||
295 | 298 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
296 | 299 | ||
297 | 300 | ||
298 | 301 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
299 | 302 | ||
300 | 303 | ||
301 | 304 | let lastTourIdKey = "%s__lastTourId" | |
302 | 305 | ||
303 | 306 | func keyTourStaticDataById (tId) = ("%s%d__tourStaticData__" + toString(tId)) | |
304 | 307 | ||
305 | 308 | ||
306 | 309 | func keyTourDynamicDataById (tId) = ("%s%d__tourDynamicData__" + toString(tId)) | |
307 | 310 | ||
308 | 311 | ||
309 | 312 | func keyAllRegistrantsByTour (tId) = ("%s%d__allRegistrants__" + toString(tId)) | |
310 | 313 | ||
311 | 314 | ||
312 | 315 | let idxStatic = 0 | |
313 | 316 | ||
314 | 317 | let idxDynamic = 1 | |
315 | 318 | ||
316 | 319 | func getTourData (tourContract,tId) = { | |
317 | 320 | let static = split(valueOrErrorMessage(getString(tourContract, keyTourStaticDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
318 | 321 | let dynamic = split(valueOrErrorMessage(getString(tourContract, keyTourDynamicDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
319 | 322 | [static, dynamic] | |
320 | 323 | } | |
321 | 324 | ||
322 | 325 | ||
323 | 326 | let tStaticRegisterCost = 2 | |
324 | 327 | ||
325 | 328 | let tStaticAttemptCost = 3 | |
326 | 329 | ||
327 | 330 | let tStaticStart = 5 | |
328 | 331 | ||
329 | 332 | let tStaticEnd = 6 | |
330 | 333 | ||
331 | 334 | let tDynamicStatus = 1 | |
332 | 335 | ||
333 | 336 | let tDynamicWinDuck = 2 | |
334 | 337 | ||
335 | 338 | let tDynamicWinResult = 3 | |
336 | 339 | ||
337 | 340 | let tDynamicTotalRegCount = 4 | |
338 | 341 | ||
339 | 342 | let tDynamicTotalAttempts = 5 | |
340 | 343 | ||
341 | 344 | func keyIsRegisteredByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__isRegisteredByTourAndDuck", toString(tId), duckAssetId], "__") | |
342 | 345 | ||
343 | 346 | ||
344 | 347 | func keyLastAttemptByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__lastAttemptByTourAndDuck", toString(tId), duckAssetId], "__") | |
345 | 348 | ||
346 | 349 | ||
347 | 350 | func keyBestResultByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__bestResultByTourAndDuck", toString(tId), duckAssetId], "__") | |
348 | 351 | ||
349 | 352 | ||
350 | 353 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
351 | 354 | ||
352 | 355 | ||
353 | 356 | let chain = take(drop(this.bytes, 1), 1) | |
354 | 357 | ||
355 | 358 | let usdtAssetId = match chain { | |
356 | 359 | case _ => | |
357 | 360 | if ((base58'2W' == $match0)) | |
358 | 361 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
359 | 362 | else if ((base58'2T' == $match0)) | |
360 | 363 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
361 | 364 | else throw("Unknown chain") | |
362 | 365 | } | |
363 | 366 | ||
364 | 367 | let defaultRestAddressStr = match chain { | |
365 | 368 | case _ => | |
366 | 369 | if ((base58'2W' == $match0)) | |
367 | 370 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
368 | 371 | else if ((base58'2T' == $match0)) | |
369 | 372 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
370 | 373 | else throw("Unknown chain") | |
371 | 374 | } | |
372 | 375 | ||
373 | 376 | let InfraUpgradeCostS = match chain { | |
374 | 377 | case _ => | |
375 | 378 | if ((base58'2W' == $match0)) | |
376 | 379 | then 10000000000 | |
377 | 380 | else if ((base58'2T' == $match0)) | |
378 | 381 | then 100000000 | |
379 | 382 | else throw("Unknown chain") | |
380 | 383 | } | |
381 | 384 | ||
382 | 385 | let SEP = "__" | |
383 | 386 | ||
384 | 387 | let MULT6 = 1000000 | |
385 | 388 | ||
386 | 389 | let MULT8 = 100000000 | |
387 | 390 | ||
388 | 391 | let SSIZE = 25 | |
389 | 392 | ||
390 | 393 | let MSIZE = 100 | |
391 | 394 | ||
392 | 395 | let LSIZE = 225 | |
393 | 396 | ||
394 | 397 | let XLSIZE = 400 | |
395 | 398 | ||
396 | 399 | let XXLSIZE = 625 | |
397 | 400 | ||
398 | 401 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
399 | 402 | ||
400 | 403 | ||
401 | 404 | let IdxCfgStakingDapp = 1 | |
402 | 405 | ||
403 | 406 | let IdxCfgEconomyDapp = 2 | |
404 | 407 | ||
405 | 408 | let IdxCfgGovernanceDapp = 3 | |
406 | 409 | ||
407 | 410 | let IdxCfgWlgDapp = 4 | |
408 | 411 | ||
409 | 412 | let IdxCfgPuzzlePoolDapp = 5 | |
410 | 413 | ||
411 | 414 | let IdxCfgInvestFundDapp = 6 | |
412 | 415 | ||
413 | 416 | let IdxCfgTournamentDapp = 7 | |
414 | 417 | ||
415 | 418 | func keyRestCfg () = "%s__restConfig" | |
416 | 419 | ||
417 | 420 | ||
418 | 421 | func keyRestAddress () = "%s__restAddr" | |
419 | 422 | ||
420 | 423 | ||
421 | 424 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
422 | 425 | ||
423 | 426 | ||
424 | 427 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
425 | 428 | ||
426 | 429 | ||
427 | 430 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
428 | 431 | ||
429 | 432 | let restCfg = readRestCfgOrFail(restContract) | |
430 | 433 | ||
431 | 434 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
432 | 435 | ||
433 | 436 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
434 | 437 | ||
435 | 438 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
436 | 439 | ||
437 | 440 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
438 | 441 | ||
439 | 442 | let puzzlePoolContract = getContractAddressOrFail(restCfg, IdxCfgPuzzlePoolDapp) | |
440 | 443 | ||
441 | 444 | let investFundContract = getContractAddressOrFail(restCfg, IdxCfgInvestFundDapp) | |
442 | 445 | ||
443 | 446 | let tournamentContract = getContractAddressOrFail(restCfg, IdxCfgTournamentDapp) | |
444 | 447 | ||
445 | 448 | let recLandNum = 0 | |
446 | 449 | ||
447 | 450 | let recLandSize = 1 | |
448 | 451 | ||
449 | 452 | let recTerrains = 2 | |
450 | 453 | ||
451 | 454 | let recContinent = 3 | |
452 | 455 | ||
453 | 456 | let wlgAssetIdKey = "wlg_assetId" | |
454 | 457 | ||
455 | 458 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "Not initialized yet") | |
456 | 459 | ||
457 | 460 | let IdxEffUser = 1 | |
458 | 461 | ||
459 | 462 | func keyResProportions () = "resTypesProportions" | |
460 | 463 | ||
461 | 464 | ||
462 | 465 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
463 | 466 | ||
464 | 467 | ||
465 | 468 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
466 | 469 | ||
467 | 470 | ||
468 | 471 | func asString (v) = match v { | |
469 | 472 | case s: String => | |
470 | 473 | s | |
471 | 474 | case _ => | |
472 | 475 | throw("fail to cast into String") | |
473 | 476 | } | |
474 | 477 | ||
475 | 478 | ||
476 | 479 | func asInt (v) = match v { | |
477 | 480 | case n: Int => | |
478 | 481 | n | |
479 | 482 | case _ => | |
480 | 483 | throw("fail to cast into Int") | |
481 | 484 | } | |
482 | 485 | ||
483 | 486 | ||
484 | 487 | func asBoolean (v) = match v { | |
485 | 488 | case s: Boolean => | |
486 | 489 | s | |
487 | 490 | case _ => | |
488 | 491 | throw("fail to cast into Boolean") | |
489 | 492 | } | |
490 | 493 | ||
491 | 494 | ||
492 | 495 | func numPiecesBySize (landSize) = match landSize { | |
493 | 496 | case _ => | |
494 | 497 | if (("S" == $match0)) | |
495 | 498 | then SSIZE | |
496 | 499 | else if (("M" == $match0)) | |
497 | 500 | then MSIZE | |
498 | 501 | else if (("L" == $match0)) | |
499 | 502 | then LSIZE | |
500 | 503 | else if (("XL" == $match0)) | |
501 | 504 | then XLSIZE | |
502 | 505 | else if (("XXL" == $match0)) | |
503 | 506 | then XXLSIZE | |
504 | 507 | else throw("Unknown land size") | |
505 | 508 | } | |
506 | 509 | ||
507 | 510 | ||
508 | 511 | func getVotingPower (userAddrStrOrEmpty) = { | |
509 | 512 | let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_") | |
510 | 513 | func adder (acc,item) = (acc + parseIntValue(item)) | |
511 | 514 | ||
512 | 515 | let totalPower = { | |
513 | 516 | let $l = props | |
514 | 517 | let $s = size($l) | |
515 | 518 | let $acc0 = 0 | |
516 | 519 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
517 | 520 | then $a | |
518 | 521 | else adder($a, $l[$i]) | |
519 | 522 | ||
520 | 523 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
521 | 524 | then $a | |
522 | 525 | else throw("List size exceeds 6") | |
523 | 526 | ||
524 | 527 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
525 | 528 | } | |
526 | 529 | let usersPower = valueOrElse(getInteger(stakingContract, keyStakedPiecesByOwner(userAddrStrOrEmpty)), 0) | |
527 | 530 | [totalPower, usersPower] | |
528 | 531 | } | |
529 | 532 | ||
530 | 533 | ||
531 | 534 | let USDTPRIZEPART = 500000 | |
532 | 535 | ||
533 | 536 | let adminsList = [toString(this), match chain { | |
534 | 537 | case _ => | |
535 | 538 | if ((base58'2W' == $match0)) | |
536 | 539 | then "3P64qEVzuGzBJuYfDXYisFtokJChSRa8uja" | |
537 | 540 | else if ((base58'2T' == $match0)) | |
538 | 541 | then "3N3gSFrTwgiLAFZHMuJrEttht1nPhnkpvjs" | |
539 | 542 | else throw("Unknown chain") | |
540 | 543 | }] | |
541 | 544 | ||
542 | 545 | func asListIntCompacted (val) = match val { | |
543 | 546 | case valAnyList: List[Any] => | |
544 | 547 | if ((size(valAnyList) != NUMRES)) | |
545 | 548 | then throw(("Array size is " + toString(size(valAnyList)))) | |
546 | 549 | else { | |
547 | 550 | func conv (acc,item) = match item { | |
548 | 551 | case it: Int => | |
549 | 552 | (acc :+ toString(it)) | |
550 | 553 | case _ => | |
551 | 554 | throw("List type is not Int") | |
552 | 555 | } | |
553 | 556 | ||
554 | 557 | let r = { | |
555 | 558 | let $l = valAnyList | |
556 | 559 | let $s = size($l) | |
557 | 560 | let $acc0 = nil | |
558 | 561 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
559 | 562 | then $a | |
560 | 563 | else conv($a, $l[$i]) | |
561 | 564 | ||
562 | 565 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
563 | 566 | then $a | |
564 | 567 | else throw("List size exceeds 6") | |
565 | 568 | ||
566 | 569 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
567 | 570 | } | |
568 | 571 | makeString(r, "_") | |
569 | 572 | } | |
570 | 573 | case _ => | |
571 | 574 | throw("fail to cast into List") | |
572 | 575 | } | |
573 | 576 | ||
574 | 577 | ||
575 | 578 | func asSplitResult (val) = match val { | |
576 | 579 | case t2: (List[Any], List[Any]) => | |
577 | 580 | $Tuple2(asListIntCompacted(t2._1), asListIntCompacted(t2._2)) | |
578 | 581 | case _ => | |
579 | 582 | throw("fail to cast into (List, List)") | |
580 | 583 | } | |
581 | 584 | ||
582 | 585 | ||
583 | 586 | func walletInternal (userAddressOpt) = { | |
584 | 587 | let addr = addressFromString(userAddressOpt) | |
585 | 588 | let balance = if (isDefined(addr)) | |
586 | 589 | then wavesBalance(value(addr)) | |
587 | 590 | else BalanceDetails(0, 0, 0, 0) | |
588 | 591 | let usdtBalance = if (isDefined(addr)) | |
589 | 592 | then assetBalance(value(addr), usdtAssetId) | |
590 | 593 | else 0 | |
591 | 594 | let wlgoldBalance = if (isDefined(addr)) | |
592 | 595 | then assetBalance(value(addr), wlgAssetId) | |
593 | 596 | else 0 | |
594 | 597 | let customName = valueOrElse(getString(stakingContract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
595 | 598 | let refByKey = keyAddressRefBy(userAddressOpt) | |
596 | 599 | let refBy = getString(stakingContract, refByKey) | |
597 | 600 | let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "") | |
598 | 601 | let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "") | |
599 | 602 | let pieces = getVotingPower(userAddressOpt)[IdxEffUser] | |
600 | 603 | let xp = valueOrElse(getInteger(stakingContract, keyUserXP(userAddressOpt)), 0) | |
601 | 604 | let lvl = valueOrElse(getInteger(stakingContract, keyUserLevel(userAddressOpt)), 0) | |
602 | 605 | let freePoints = valueOrElse(getInteger(stakingContract, keyUserFreePoints(userAddressOpt)), 0) | |
603 | 606 | let onboard = if (isDefined(refBy)) | |
604 | 607 | then (ARTONBOARD + (if (if (isDefined(addr)) | |
605 | 608 | then isDefined(getString(stakingContract, keyOnboardArtDuckActivatedBy(userAddressOpt))) | |
606 | 609 | else false) | |
607 | 610 | then ":1" | |
608 | 611 | else ":0")) | |
609 | 612 | else "" | |
610 | 613 | [("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(refBy, "")), ("%s%s__referrals__" + refs), ("%s%s__lastTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__stakedPieces__" + toString(pieces)), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__walletArtefacts__" + onboard)] | |
611 | 614 | } | |
612 | 615 | ||
613 | 616 | ||
614 | 617 | func applyBonuses (landAssetId,pieces) = { | |
615 | 618 | let infraLevel = valueOrElse(getInteger(stakingContract, keyInfraLevelByAssetId(landAssetId)), 0) | |
616 | 619 | let artPieces = valueOrElse(getInteger(stakingContract, keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
617 | 620 | let add6 = (infraLevel / 6) | |
618 | 621 | let add7 = (infraLevel / 7) | |
619 | 622 | $Tuple3(infraLevel, artPieces, ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5)))) | |
620 | 623 | } | |
621 | 624 | ||
622 | 625 | ||
623 | 626 | func getWarehouseTotalVolume (volPrefix) = { | |
624 | 627 | let parts = split(volPrefix, "_") | |
625 | 628 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
626 | 629 | } | |
627 | 630 | ||
628 | 631 | ||
629 | 632 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
630 | 633 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
631 | 634 | let totS = toString(getWarehouseTotalVolume(volPrefix)) | |
632 | 635 | let whStr = valueOrElse(getString(stakingContract, whKey), ((((volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + totS) + "_") + totS)) | |
633 | 636 | split(whStr, ":") | |
634 | 637 | } | |
635 | 638 | ||
636 | 639 | ||
637 | 640 | func duckInfoTuple (duckAssetId) = { | |
638 | 641 | let maxHP = maxHealth(valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0)) | |
639 | 642 | $Tuple5(valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(duckAssetId)), -1), value(assetInfo(fromBase58String(duckAssetId))).name, valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), ""), valueOrElse(getInteger(stakingContract, keyDuckHealth(duckAssetId)), maxHP), asString(invoke(stakingContract, "getBackpackREADONLY", [duckAssetId], nil))) | |
640 | 643 | } | |
641 | 644 | ||
642 | 645 | ||
643 | 646 | func duckInfoArray (duckAssetId,owner,duckInf) = { | |
644 | 647 | let customName = valueOrElse(getString(stakingContract, keyDuckAssetIdToCustomName(duckAssetId)), duckInf._2) | |
645 | 648 | let chars = valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0") | |
646 | 649 | let xp = valueOrElse(getInteger(stakingContract, keyDuckXP(duckAssetId)), 0) | |
647 | 650 | let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0) | |
648 | 651 | let freePoints = valueOrElse(getInteger(stakingContract, keyDuckFreePoints(duckAssetId)), 0) | |
649 | 652 | let equipm = valueOrElse(getString(stakingContract, keyDuckEquipment(duckAssetId)), ";_;_;_;_;_;") | |
650 | - | [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(duckInf._1)), ("%s%s__name__" + duckInf._2), ("%s%s__location__" + duckInf._3), ("%s%d__health__" + toString(duckInf._4)), ("%s%d__maxHealth__" + toString(maxHealth(lvl))), ("%s%s__characteristics__" + chars), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__backPack__" + duckInf._5), ("%s%s__equipment__" + equipm)] | |
653 | + | let buffs = valueOrElse(getString(stakingContract, keyDuckBuffs(duckAssetId)), "0_0_0_0_0") | |
654 | + | [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(duckInf._1)), ("%s%s__name__" + duckInf._2), ("%s%s__location__" + duckInf._3), ("%s%d__health__" + toString(duckInf._4)), ("%s%d__maxHealth__" + toString(maxHealth(lvl))), ("%s%s__characteristics__" + chars), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__backPack__" + duckInf._5), ("%s%s__equipment__" + equipm), ("%s%s__buffs__" + buffs)] | |
651 | 655 | } | |
652 | 656 | ||
653 | 657 | ||
654 | 658 | func landInfoArray (landAssetId,owner,stakedTime) = if ((landAssetId == "")) | |
655 | 659 | then throw("landAssetId is required") | |
656 | 660 | else { | |
657 | 661 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
658 | 662 | let d = split(a.description, "_") | |
659 | 663 | let landNum = if ((a.quantity > 0)) | |
660 | 664 | then d[recLandNum] | |
661 | 665 | else ("-" + d[recLandNum]) | |
662 | 666 | let pieces = numPiecesBySize(d[recLandSize]) | |
663 | 667 | let productivity = applyBonuses(landAssetId, pieces) | |
664 | 668 | let deltaTime = (lastBlock.timestamp - stakedTime) | |
665 | 669 | let availRes = if ((stakedTime > 0)) | |
666 | 670 | then fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS) | |
667 | 671 | else 0 | |
668 | 672 | let needMat = fraction(InfraUpgradeCostS, (pieces * (productivity._1 + 1)), SSIZE) | |
669 | 673 | let globalAndLocal = if ((stakedTime > 0)) | |
670 | 674 | then asSplitResult(invoke(stakingContract, "splitByGlobalAndLocalWeightsREADONLY", [needMat, availRes, d[recTerrains]], nil)) | |
671 | 675 | else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "") | |
672 | 676 | let customName = valueOrElse(getString(stakingContract, keyLandAssetIdToCustomName(landAssetId)), ((d[recContinent] + "-") + d[recLandNum])) | |
673 | 677 | [("%s%s__assetId__" + landAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(stakedTime)), ("%s%s__description__" + makeString([landNum, d[recLandSize], d[recTerrains], d[recContinent]], "_")), ("%s%d__infraLevel__" + toString(productivity._1)), ("%s%s__availResByType__" + globalAndLocal._2), ("%s%d__availResTotal__" + toString(availRes)), ("%s%s__needMaterial__" + globalAndLocal._1), ("%s%s__landArtefacts__PRESALE:" + toString(productivity._2)), ("%s%s__warehouse__" + makeString(getWarehouse(keyWarehouseByLand(landAssetId), (pieces / SSIZE), productivity._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(economyContract, keyOrderByLand(landAssetId)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
674 | 678 | } | |
675 | 679 | ||
676 | 680 | ||
677 | 681 | func landOrderInfoArray (landAssetId,owner) = if ((landAssetId == "")) | |
678 | 682 | then throw("landAssetId is required") | |
679 | 683 | else { | |
680 | 684 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
681 | 685 | let d = split(a.description, "_") | |
682 | 686 | let pieces = numPiecesBySize(d[recLandSize]) | |
683 | 687 | let productivity = applyBonuses(landAssetId, pieces) | |
684 | 688 | [("%s%s__assetId__" + landAssetId), ("%s%s__owner__" + owner), ("%s%s__warehouse__" + makeString(getWarehouse(keyWarehouseByLand(landAssetId), (pieces / SSIZE), productivity._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(economyContract, keyOrderByLand(landAssetId)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
685 | 689 | } | |
686 | 690 | ||
687 | 691 | ||
688 | 692 | @Callable(i) | |
689 | 693 | func constructorV1 (contracts) = if ((i.caller != this)) | |
690 | 694 | then throw("permissions denied") | |
691 | 695 | else { | |
692 | 696 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
693 | 697 | ||
694 | 698 | let descr = { | |
695 | 699 | let $l = contracts | |
696 | 700 | let $s = size($l) | |
697 | 701 | let $acc0 = "" | |
698 | 702 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
699 | 703 | then $a | |
700 | 704 | else descriptor($a, $l[$i]) | |
701 | 705 | ||
702 | 706 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
703 | 707 | then $a | |
704 | 708 | else throw("List size exceeds 10") | |
705 | 709 | ||
706 | 710 | $f0_2($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) | |
707 | 711 | } | |
708 | 712 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRestAddress(), toString(this))] | |
709 | 713 | } | |
710 | 714 | ||
711 | 715 | ||
712 | 716 | ||
713 | 717 | @Callable(i) | |
714 | 718 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
715 | 719 | ||
716 | 720 | ||
717 | 721 | ||
718 | 722 | @Callable(i) | |
719 | 723 | func duckByOwnerInfoREADONLY (userAddress) = { | |
720 | 724 | let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddress)) | |
721 | 725 | $Tuple2(nil, if (if (isDefined(addressFromString(userAddress))) | |
722 | 726 | then isDefined(stakedDuck) | |
723 | 727 | else false) | |
724 | 728 | then { | |
725 | 729 | let duckAssetId = value(stakedDuck) | |
726 | 730 | duckInfoArray(duckAssetId, userAddress, duckInfoTuple(duckAssetId)) | |
727 | 731 | } | |
728 | 732 | else duckInfoArray("", userAddress, $Tuple5(-1, "", "", -1, ""))) | |
729 | 733 | } | |
730 | 734 | ||
731 | 735 | ||
732 | 736 | ||
733 | 737 | @Callable(i) | |
734 | 738 | func duckByAssetIdInfoREADONLY (duckAssetId) = { | |
735 | 739 | let owner = getString(stakingContract, keyDuckIdToOwner(duckAssetId)) | |
736 | 740 | $Tuple2(nil, duckInfoArray(duckAssetId, if (isDefined(owner)) | |
737 | 741 | then value(owner) | |
738 | 742 | else "", duckInfoTuple(duckAssetId))) | |
739 | 743 | } | |
740 | 744 | ||
741 | 745 | ||
742 | 746 | ||
743 | 747 | @Callable(i) | |
744 | 748 | func landByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
745 | 749 | then throw("landAssetId is required") | |
746 | 750 | else { | |
747 | 751 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
748 | 752 | let owner = if ((stakedTime > 0)) | |
749 | 753 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
750 | 754 | else "" | |
751 | 755 | $Tuple2(nil, landInfoArray(landAssetId, owner, stakedTime)) | |
752 | 756 | } | |
753 | 757 | ||
754 | 758 | ||
755 | 759 | ||
756 | 760 | @Callable(i) | |
757 | 761 | func stakedLandsByOwnerInfoREADONLY (landOwnerAddress) = if ((landOwnerAddress == "")) | |
758 | 762 | then throw("landOwnerAddress is required") | |
759 | 763 | else { | |
760 | 764 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress)) | |
761 | 765 | let lands = if (isDefined(landsStr)) | |
762 | 766 | then split_51C(value(landsStr), "_") | |
763 | 767 | else nil | |
764 | 768 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
765 | 769 | then throw("landAssetId is required") | |
766 | 770 | else { | |
767 | 771 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
768 | 772 | (acc :+ landInfoArray(landAssetId, landOwnerAddress, stakedTime)) | |
769 | 773 | } | |
770 | 774 | ||
771 | 775 | let r = { | |
772 | 776 | let $l = lands | |
773 | 777 | let $s = size($l) | |
774 | 778 | let $acc0 = nil | |
775 | 779 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
776 | 780 | then $a | |
777 | 781 | else oneLand($a, $l[$i]) | |
778 | 782 | ||
779 | 783 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
780 | 784 | then $a | |
781 | 785 | else throw("List size exceeds 100") | |
782 | 786 | ||
783 | 787 | $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($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($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($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), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
784 | 788 | } | |
785 | 789 | $Tuple2(nil, r) | |
786 | 790 | } | |
787 | 791 | ||
788 | 792 | ||
789 | 793 | ||
790 | 794 | @Callable(i) | |
791 | 795 | func landsByIdsInfoREADONLY (landAssetIds) = { | |
792 | 796 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
793 | 797 | then throw("landAssetId is required") | |
794 | 798 | else { | |
795 | 799 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
796 | 800 | let owner = if ((stakedTime > 0)) | |
797 | 801 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
798 | 802 | else "" | |
799 | 803 | (acc :+ landInfoArray(landAssetId, owner, stakedTime)) | |
800 | 804 | } | |
801 | 805 | ||
802 | 806 | let r = { | |
803 | 807 | let $l = landAssetIds | |
804 | 808 | let $s = size($l) | |
805 | 809 | let $acc0 = nil | |
806 | 810 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
807 | 811 | then $a | |
808 | 812 | else oneLand($a, $l[$i]) | |
809 | 813 | ||
810 | 814 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
811 | 815 | then $a | |
812 | 816 | else throw("List size exceeds 100") | |
813 | 817 | ||
814 | 818 | $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($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($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($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), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
815 | 819 | } | |
816 | 820 | $Tuple2(nil, r) | |
817 | 821 | } | |
818 | 822 | ||
819 | 823 | ||
820 | 824 | ||
821 | 825 | @Callable(i) | |
822 | 826 | func warehouseOrderByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
823 | 827 | then throw("landAssetId is required") | |
824 | 828 | else { | |
825 | 829 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
826 | 830 | let owner = if ((stakedTime > 0)) | |
827 | 831 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
828 | 832 | else "" | |
829 | 833 | $Tuple2(nil, landOrderInfoArray(landAssetId, owner)) | |
830 | 834 | } | |
831 | 835 | ||
832 | 836 | ||
833 | 837 | ||
834 | 838 | @Callable(i) | |
835 | 839 | func ordersByLandIdsInfoREADONLY (landAssetIds) = { | |
836 | 840 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
837 | 841 | then throw("landAssetId is required") | |
838 | 842 | else { | |
839 | 843 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
840 | 844 | let owner = if ((stakedTime > 0)) | |
841 | 845 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
842 | 846 | else "" | |
843 | 847 | (acc :+ landOrderInfoArray(landAssetId, owner)) | |
844 | 848 | } | |
845 | 849 | ||
846 | 850 | let r = { | |
847 | 851 | let $l = landAssetIds | |
848 | 852 | let $s = size($l) | |
849 | 853 | let $acc0 = nil | |
850 | 854 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
851 | 855 | then $a | |
852 | 856 | else oneLand($a, $l[$i]) | |
853 | 857 | ||
854 | 858 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
855 | 859 | then $a | |
856 | 860 | else throw("List size exceeds 40") | |
857 | 861 | ||
858 | 862 | $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($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), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40) | |
859 | 863 | } | |
860 | 864 | $Tuple2(nil, r) | |
861 | 865 | } | |
862 | 866 | ||
863 | 867 | ||
864 | 868 | ||
865 | 869 | @Callable(i) | |
866 | 870 | func cancelWarehouseOrders (landAssetIds) = if ((i.caller != this)) | |
867 | 871 | then throw("permission denied") | |
868 | 872 | else { | |
869 | 873 | let blocked = getBoolean(stakingContract, keyBlocked()) | |
870 | 874 | if (if (!(isDefined(blocked))) | |
871 | 875 | then true | |
872 | 876 | else (value(blocked) == false)) | |
873 | 877 | then throw("Contracts should be blocked before canceling orders") | |
874 | 878 | else { | |
875 | 879 | func oneLand (a,landAssetId) = if ((landAssetId == "")) | |
876 | 880 | then throw("landAssetId is required") | |
877 | 881 | else { | |
878 | 882 | let c = asBoolean(invoke(economyContract, "setWarehouseOrder", ["0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:", landAssetId], nil)) | |
879 | 883 | if (if (a) | |
880 | 884 | then true | |
881 | 885 | else c) | |
882 | 886 | then !(if (a) | |
883 | 887 | then c | |
884 | 888 | else false) | |
885 | 889 | else false | |
886 | 890 | } | |
887 | 891 | ||
888 | 892 | let r = { | |
889 | 893 | let $l = landAssetIds | |
890 | 894 | let $s = size($l) | |
891 | 895 | let $acc0 = false | |
892 | 896 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
893 | 897 | then $a | |
894 | 898 | else oneLand($a, $l[$i]) | |
895 | 899 | ||
896 | 900 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
897 | 901 | then $a | |
898 | 902 | else throw("List size exceeds 30") | |
899 | 903 | ||
900 | 904 | $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) | |
901 | 905 | } | |
902 | 906 | $Tuple2(nil, r) | |
903 | 907 | } | |
904 | 908 | } | |
905 | 909 | ||
906 | 910 | ||
907 | 911 | ||
908 | 912 | @Callable(i) | |
909 | 913 | func fixWarehouseFormats (landAssetIds) = if ((i.caller != this)) | |
910 | 914 | then throw("permission denied") | |
911 | 915 | else { | |
912 | 916 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
913 | 917 | then throw("landAssetId is required") | |
914 | 918 | else (acc + size(asString(invoke(stakingContract, "fixWarehouseFormat", [landAssetId], nil)))) | |
915 | 919 | ||
916 | 920 | let r = { | |
917 | 921 | let $l = landAssetIds | |
918 | 922 | let $s = size($l) | |
919 | 923 | let $acc0 = 0 | |
920 | 924 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
921 | 925 | then $a | |
922 | 926 | else oneLand($a, $l[$i]) | |
923 | 927 | ||
924 | 928 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
925 | 929 | then $a | |
926 | 930 | else throw("List size exceeds 25") | |
927 | 931 | ||
928 | 932 | $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($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) | |
929 | 933 | } | |
930 | 934 | $Tuple2(nil, r) | |
931 | 935 | } | |
932 | 936 | ||
933 | 937 | ||
934 | 938 | ||
935 | 939 | @Callable(i) | |
936 | 940 | func fixStakedPieces (users) = if ((i.caller != this)) | |
937 | 941 | then throw("permission denied") | |
938 | 942 | else { | |
939 | 943 | func oneUser (acc,addr) = if ((addr == "")) | |
940 | 944 | then throw("address is required") | |
941 | 945 | else (acc + asInt(invoke(stakingContract, "fixStakedPieces", [addr], nil))) | |
942 | 946 | ||
943 | 947 | let r = { | |
944 | 948 | let $l = users | |
945 | 949 | let $s = size($l) | |
946 | 950 | let $acc0 = 0 | |
947 | 951 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
948 | 952 | then $a | |
949 | 953 | else oneUser($a, $l[$i]) | |
950 | 954 | ||
951 | 955 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
952 | 956 | then $a | |
953 | 957 | else throw("List size exceeds 16") | |
954 | 958 | ||
955 | 959 | $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
956 | 960 | } | |
957 | 961 | $Tuple2(nil, r) | |
958 | 962 | } | |
959 | 963 | ||
960 | 964 | ||
961 | 965 | ||
962 | 966 | @Callable(i) | |
963 | 967 | func fixStakedLands (landAssetIds) = { | |
964 | 968 | let caller = toString(i.caller) | |
965 | 969 | if (!(containsElement(adminsList, caller))) | |
966 | 970 | then throw("Permission denied") | |
967 | 971 | else { | |
968 | 972 | let r = asInt(invoke(stakingContract, "fixContinentProportions", [landAssetIds], nil)) | |
969 | 973 | $Tuple2(nil, r) | |
970 | 974 | } | |
971 | 975 | } | |
972 | 976 | ||
973 | 977 | ||
974 | 978 | ||
975 | 979 | @Callable(i) | |
976 | 980 | func sendUsdtPrize (userAddress) = if ((i.caller != stakingContract)) | |
977 | 981 | then throw("permission denied") | |
978 | 982 | else { | |
979 | 983 | let amt = fraction(assetBalance(this, usdtAssetId), USDTPRIZEPART, MULT6) | |
980 | 984 | $Tuple2([ScriptTransfer(addressFromStringValue(userAddress), amt, usdtAssetId)], amt) | |
981 | 985 | } | |
982 | 986 | ||
983 | 987 | ||
984 | 988 | ||
985 | 989 | @Callable(i) | |
986 | 990 | func getEmergencyServiceDataREADONLY () = { | |
987 | 991 | let existStr = getString(economyContract, keyEsWarehouse()) | |
988 | 992 | let existAmounts = if (isDefined(existStr)) | |
989 | 993 | then split_4C(value(existStr), "_") | |
990 | 994 | else nil | |
991 | 995 | func singleProd (acc,recipeStr) = { | |
992 | 996 | let n = acc._2 | |
993 | 997 | let recipe = split(recipeStr, "_") | |
994 | 998 | let maxAmount = if ((n == 0)) | |
995 | 999 | then (ESMAXPACKAGES * PRODUCTPKGSIZE) | |
996 | 1000 | else 0 | |
997 | 1001 | let existAmount = if ((size(existAmounts) > n)) | |
998 | 1002 | then parseIntValue(existAmounts[n]) | |
999 | 1003 | else 0 | |
1000 | 1004 | let totalMat = getRecipeMaterials(recipe) | |
1001 | 1005 | let buyPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1002 | 1006 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1003 | 1007 | let y = makeString([toString(maxAmount), toString(existAmount), toString(buyPrice), toString(sellPrice)], "_") | |
1004 | 1008 | $Tuple2((acc._1 :+ y), (n + 1)) | |
1005 | 1009 | } | |
1006 | 1010 | ||
1007 | 1011 | let s = makeString_2C(( let $l = productionMatrix | |
1008 | 1012 | let $s = size($l) | |
1009 | 1013 | let $acc0 = $Tuple2(nil, 0) | |
1010 | 1014 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1011 | 1015 | then $a | |
1012 | 1016 | else singleProd($a, $l[$i]) | |
1013 | 1017 | ||
1014 | 1018 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1015 | 1019 | then $a | |
1016 | 1020 | else throw("List size exceeds 50") | |
1017 | 1021 | ||
1018 | 1022 | $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($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), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50))._1, ":") | |
1019 | 1023 | let result = ("%s%s__emergencyServiceData__" + s) | |
1020 | 1024 | $Tuple2(nil, result) | |
1021 | 1025 | } | |
1022 | 1026 | ||
1023 | 1027 | ||
1024 | 1028 | ||
1025 | 1029 | @Callable(i) | |
1026 | 1030 | func wlgStatsREADONLY (userAddrOpt) = { | |
1027 | 1031 | let curStats = getWlgStats(userAddrOpt, [restContract, stakingContract, economyContract, govContract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
1028 | 1032 | $Tuple2(nil, [("%s%s%d__wlgAmount__" + toString(curStats[idxWlgAmount])), ("%s%s%d__wlgPrice__" + toString(curStats[idxWlgPrice])), ("%s%s%d__usdtFunds__" + toString(curStats[idxWlgFunds])), ("%s%s%d__usdtEconomy__" + toString(curStats[idxWlgEconomy])), ("%s%s%d__usdtActivity__" + toString(curStats[idxWlgActivity])), ("%s%s%d__usdtArbitrage__" + toString(curStats[idxWlgArbitrage])), ("%s%s%d__usdtPool__" + toString(curStats[idxWlgPool])), ("%s%s%d__wlgIssueTime__" + toString(curStats[idxWlgIssueTime])), ("%s%s%d__wlgLastMarketingTeamActTime__" + toString(curStats[idxWlgLastMTATime])), ("%s%s%d__wlgMarketingTotal__" + toString(curStats[idxWlgMarketingTotal])), ("%s%s%d__wlgMarketingAmLeft__" + toString(curStats[idxWlgMarketingAmLeft])), ("%s%s%d__wlgMarketingAmAvailNow__" + toString(curStats[idxWlgMarketingAmAvailNow])), ("%s%s%d__wlgMarketingWlgold__" + toString(curStats[idxWlgMarketingWlgold])), ("%s%s%d__wlgTeamTotal__" + toString(curStats[idxWlgTeamTotal])), ("%s%s%d__wlgTeamAmLeft__" + toString(curStats[idxWlgTeamAmLeft])), ("%s%s%d__wlgTeamAmAvailNow__" + toString(curStats[idxWlgTeamAmAvailNow])), ("%s%s%d__wlgTeamWlgold__" + toString(curStats[idxWlgTeamWlgold])), ("%s%s%d__wlgActTotal__" + toString(curStats[idxWlgActTotal])), ("%s%s%d__wlgActAmLeft__" + toString(curStats[idxWlgActAmLeft])), ("%s%s%d__wlgActAmAvailNow__" + toString(curStats[idxWlgActAmAvailNow])), ("%s%s%d__wlgActWlgold__" + toString(curStats[idxWlgActWlgold])), ("%s%s%d__wlgCurPeriod__" + toString(curStats[idxWlgCurPeriod])), ("%s%s%d__wlgAmLeftTotal__" + toString(curStats[idxWlgAmLeftTotal])), ("%s%s%d__wlgCurPeriodDistribution__" + toString(curStats[idxWlgCurPeriodDistribution])), ("%s%s%d__wlgLastUserTime__" + toString(curStats[idxWlgLastUserTime])), ("%s%s%d__wlgUserAmAvailNow__" + toString(curStats[idxWlgUserAmAvailNow])), ("%s%s%d__wlgGuestSLandDaily__" + toString(curStats[idxWlgSLandDailyAmount])), ("%s%s%d__wlgInvestFundTotal__" + toString(curStats[idxWlgInvestFundAmount]))]) | |
1029 | 1033 | } | |
1030 | 1034 | ||
1031 | 1035 | ||
1032 | 1036 | ||
1033 | 1037 | @Callable(i) | |
1034 | 1038 | func tournamentStatsREADONLY (tournamentId) = { | |
1035 | 1039 | let tData = getTourData(tournamentContract, tournamentId) | |
1036 | 1040 | let static = tData[idxStatic] | |
1037 | 1041 | let dynamic = tData[idxDynamic] | |
1038 | 1042 | let winDuck = if ((dynamic[tDynamicWinDuck] == "")) | |
1039 | 1043 | then " " | |
1040 | 1044 | else dynamic[tDynamicWinDuck] | |
1041 | 1045 | let registrants = valueOrElse(getString(tournamentContract, keyAllRegistrantsByTour(tournamentId)), "") | |
1042 | 1046 | $Tuple2(nil, [("%s%s__tournamentStaticData__" + makeString([static[tStaticRegisterCost], static[tStaticAttemptCost], static[tStaticStart], static[tStaticEnd]], "_")), ("%s%s__tournamentDynamicData__" + makeString([dynamic[tDynamicStatus], winDuck, dynamic[tDynamicWinResult], dynamic[tDynamicTotalRegCount], dynamic[tDynamicTotalAttempts]], "_")), ("%s%s__tournamentRegistrants__" + registrants)]) | |
1043 | 1047 | } | |
1044 | 1048 | ||
1045 | 1049 | ||
1046 | 1050 | ||
1047 | 1051 | @Callable(i) | |
1048 | 1052 | func lastTournamentStatsREADONLY () = { | |
1049 | 1053 | let tournamentId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
1050 | 1054 | let static = split(valueOrElse(getString(tournamentContract, keyTourStaticDataById(tournamentId)), "%s%d%d%d%d%d____________"), SEP) | |
1051 | 1055 | let dynamic = split(valueOrElse(getString(tournamentContract, keyTourDynamicDataById(tournamentId)), "%s%s%d%d%d__________"), SEP) | |
1052 | 1056 | let winDuck = if ((dynamic[tDynamicWinDuck] == "")) | |
1053 | 1057 | then " " | |
1054 | 1058 | else dynamic[tDynamicWinDuck] | |
1055 | 1059 | let registrants = valueOrElse(getString(tournamentContract, keyAllRegistrantsByTour(tournamentId)), "") | |
1056 | 1060 | $Tuple2(nil, [("%s%s__lastTournamentId__" + toString(tournamentId)), ("%s%s__tournamentStaticData__" + makeString([static[tStaticRegisterCost], static[tStaticAttemptCost], static[tStaticStart], static[tStaticEnd]], "_")), ("%s%s__tournamentDynamicData__" + makeString([dynamic[tDynamicStatus], winDuck, dynamic[tDynamicWinResult], dynamic[tDynamicTotalRegCount], dynamic[tDynamicTotalAttempts]], "_")), ("%s%s__tournamentRegistrants__" + registrants)]) | |
1057 | 1061 | } | |
1058 | 1062 | ||
1059 | 1063 | ||
1060 | 1064 | ||
1061 | 1065 | @Callable(i) | |
1062 | 1066 | func tournamentDuckStatsREADONLY (tId,duckAssetId) = { | |
1063 | 1067 | let isDuckReg = valueOrElse(getBoolean(tournamentContract, keyIsRegisteredByTourAndDuck(tId, duckAssetId)), false) | |
1064 | 1068 | let lastDuckAttempt = valueOrElse(getInteger(tournamentContract, keyLastAttemptByTourAndDuck(tId, duckAssetId)), 0) | |
1065 | 1069 | let bestDuckResult = valueOrElse(getInteger(tournamentContract, keyBestResultByTourAndDuck(tId, duckAssetId)), 0) | |
1066 | 1070 | $Tuple2(nil, [("%s%s__tournamentDuckStats__" + makeString([toString(isDuckReg), toString(lastDuckAttempt), toString(bestDuckResult)], "_"))]) | |
1067 | 1071 | } | |
1068 | 1072 | ||
1069 | 1073 |
github/deemru/w8io/169f3d6 152.60 ms ◑