tx · BTv1RiP1iUEozxPpFZ6U1dRzbm2SkgpHSXrVgzfkdNYP 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy: -0.03600000 Waves 2023.08.14 11:06 [2709969] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves
{ "type": 13, "id": "BTv1RiP1iUEozxPpFZ6U1dRzbm2SkgpHSXrVgzfkdNYP", "fee": 3600000, "feeAssetId": null, "timestamp": 1692000440139, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "5QsBKsmJbiFXgmoB7TKzfKrEGK3tGLGNSeegBbBbN68c3ncTVvKGT62EM8vSGretgxyTJyxPeoVvhDNHHLRPf5qD" ], "script": "base64:BgJcCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBGBIDCgEIEgMKARgSAwoBGBIDCgEYEgMKARgSAwoBGBIDCgEIEgASAwoBCBIDCgEBEgASBAoCAQi1AQACTTYAwIQ9AAJNOACAwtcvAAhNSUxMSU9ONgCAgOmDsd4WAA5NQVJLRVRJTkdTSEFSRQCgjQYACVRFQU1TSEFSRQDAmgwADUFDVElWSVRZU0hBUkUAoI0GAAtQTEFZRVJTSEFSRQCAtRgACllFQVJNSUxMSVMAgIbrx3UAA0RBWQCAuJkpABBtYXJrZXRpbmdBZGRyS2V5Ag1tYXJrZXRpbmdBZGRyAAt0ZWFtQWRkcktleQIIdGVhbUFkZHIAFGxhc3RNYXJrZXRpbmdUaW1lS2V5AhlsYXN0Q2xhaW1lZFRpbWVfbWFya2V0aW5nABZtYXJrZXRpbmdBbW91bnRMZWZ0S2V5AhNtYXJrZXRpbmdBbW91bnRMZWZ0AA9sYXN0VGVhbVRpbWVLZXkCFGxhc3RDbGFpbWVkVGltZV90ZWFtABF0ZWFtQW1vdW50TGVmdEtleQIOdG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kJAgkAzAgCCQCRAwIFB2R5bmFtaWMFDnREeW5hbWljU3RhdHVzCQDMCAIFB3dpbkR1Y2sJAMwIAgkAkQMCBQdkeW5hbWljBRF0RHluYW1pY1dpblJlc3VsdAkAzAgCCQCRAwIFB2R5bmFtaWMFFXREeW5hbWljVG90YWxSZWdDb3VudAkAzAgCCQCRAwIFB2R5bmFtaWMFFXREeW5hbWljVG90YWxBdHRlbXB0cwUDbmlsAgFfCQDMCAIJAKwCAgIdJXMlc19fdG91cm5hbWVudFJlZ2lzdHJhbnRzX18FC3JlZ2lzdHJhbnRzBQNuaWwBaQEbdG91cm5hbWVudER1Y2tTdGF0c1JFQURPTkxZAgN0SWQLZHVja0Fzc2V0SWQECWlzRHVja1JlZwkBC3ZhbHVlT3JFbHNlAgkAmwgCBRJ0b3VybmFtZW50Q29udHJhY3QJARxrZXlJc1JlZ2lzdGVyZWRCeVRvdXJBbmREdWNrAgUDdElkBQtkdWNrQXNzZXRJZAcED2xhc3REdWNrQXR0ZW1wdAkBC3ZhbHVlT3JFbHNlAgkAmggCBRJ0b3VybmFtZW50Q29udHJhY3QJARtrZXlMYXN0QXR0ZW1wdEJ5VG91ckFuZER1Y2sCBQN0SWQFC2R1Y2tBc3NldElkAAAEDmJlc3REdWNrUmVzdWx0CQELdmFsdWVPckVsc2UCCQCaCAIFEnRvdXJuYW1lbnRDb250cmFjdAkBGmtleUJlc3RSZXN1bHRCeVRvdXJBbmREdWNrAgUDdElkBQtkdWNrQXNzZXRJZAAACQCUCgIFA25pbAkAzAgCCQCsAgICGyVzJXNfX3RvdXJuYW1lbnREdWNrU3RhdHNfXwkAuQkCCQDMCAIJAKUDAQUJaXNEdWNrUmVnCQDMCAIJAKQDAQUPbGFzdER1Y2tBdHRlbXB0CQDMCAIJAKQDAQUOYmVzdER1Y2tSZXN1bHQFA25pbAIBXwUDbmlsAKBlcIk=", "height": 2709969, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FDBrKcp7m1f9pEXFZpBzH9EcufqXQkundhckqFqN7Vp8 Next: 4xabMYaYSu6mq7EHcUw49MubX22BPp7Ge2WEWPpvc6AF Diff:
Old | New | Differences | |
---|---|---|---|
986 | 986 | func getEmergencyServiceDataREADONLY () = { | |
987 | 987 | let existStr = getString(economyContract, keyEsWarehouse()) | |
988 | 988 | let existAmounts = if (isDefined(existStr)) | |
989 | - | then split(value(existStr), "_") | |
989 | + | then split_4C(value(existStr), "_") | |
990 | 990 | else nil | |
991 | 991 | func singleProd (acc,recipeStr) = { | |
992 | 992 | let n = acc._2 |
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 | 214 | ||
215 | 215 | ||
216 | 216 | func maxHealth (level) = (100 + level) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | let ARTPRESALE = "PRESALE" | |
220 | 220 | ||
221 | 221 | let ARTONBOARD = "ONBOARD" | |
222 | 222 | ||
223 | 223 | let NUMRES = 6 | |
224 | 224 | ||
225 | 225 | let DAILYRESBYPIECE = 3456000 | |
226 | 226 | ||
227 | 227 | let DAYMILLIS = 86400000 | |
228 | 228 | ||
229 | 229 | let WHMULTIPLIER = 10000000000 | |
230 | 230 | ||
231 | 231 | let RESOURCEPRICEMIN = 39637 | |
232 | 232 | ||
233 | 233 | let ESMAXPACKAGES = 3 | |
234 | 234 | ||
235 | 235 | let ESBUYCOEF = 4 | |
236 | 236 | ||
237 | 237 | let ESSELLCOEF = 10 | |
238 | 238 | ||
239 | 239 | let COEFF2MAT = 10000000 | |
240 | 240 | ||
241 | 241 | 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 | 242 | ||
243 | 243 | let rIdxCoeff = 6 | |
244 | 244 | ||
245 | 245 | let PRODUCTPKGSIZE = 10 | |
246 | 246 | ||
247 | 247 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func keyBlocked () = "contractsBlocked" | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | let lastTourIdKey = "%s__lastTourId" | |
302 | 302 | ||
303 | 303 | func keyTourStaticDataById (tId) = ("%s%d__tourStaticData__" + toString(tId)) | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | func keyTourDynamicDataById (tId) = ("%s%d__tourDynamicData__" + toString(tId)) | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | func keyAllRegistrantsByTour (tId) = ("%s%d__allRegistrants__" + toString(tId)) | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | let idxStatic = 0 | |
313 | 313 | ||
314 | 314 | let idxDynamic = 1 | |
315 | 315 | ||
316 | 316 | func getTourData (tourContract,tId) = { | |
317 | 317 | let static = split(valueOrErrorMessage(getString(tourContract, keyTourStaticDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
318 | 318 | let dynamic = split(valueOrErrorMessage(getString(tourContract, keyTourDynamicDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
319 | 319 | [static, dynamic] | |
320 | 320 | } | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | let tStaticRegisterCost = 2 | |
324 | 324 | ||
325 | 325 | let tStaticAttemptCost = 3 | |
326 | 326 | ||
327 | 327 | let tStaticStart = 5 | |
328 | 328 | ||
329 | 329 | let tStaticEnd = 6 | |
330 | 330 | ||
331 | 331 | let tDynamicStatus = 1 | |
332 | 332 | ||
333 | 333 | let tDynamicWinDuck = 2 | |
334 | 334 | ||
335 | 335 | let tDynamicWinResult = 3 | |
336 | 336 | ||
337 | 337 | let tDynamicTotalRegCount = 4 | |
338 | 338 | ||
339 | 339 | let tDynamicTotalAttempts = 5 | |
340 | 340 | ||
341 | 341 | func keyIsRegisteredByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__isRegisteredByTourAndDuck", toString(tId), duckAssetId], "__") | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func keyLastAttemptByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__lastAttemptByTourAndDuck", toString(tId), duckAssetId], "__") | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func keyBestResultByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__bestResultByTourAndDuck", toString(tId), duckAssetId], "__") | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | let chain = take(drop(this.bytes, 1), 1) | |
354 | 354 | ||
355 | 355 | let usdtAssetId = match chain { | |
356 | 356 | case _ => | |
357 | 357 | if ((base58'2W' == $match0)) | |
358 | 358 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
359 | 359 | else if ((base58'2T' == $match0)) | |
360 | 360 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
361 | 361 | else throw("Unknown chain") | |
362 | 362 | } | |
363 | 363 | ||
364 | 364 | let defaultRestAddressStr = match chain { | |
365 | 365 | case _ => | |
366 | 366 | if ((base58'2W' == $match0)) | |
367 | 367 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
368 | 368 | else if ((base58'2T' == $match0)) | |
369 | 369 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
370 | 370 | else throw("Unknown chain") | |
371 | 371 | } | |
372 | 372 | ||
373 | 373 | let InfraUpgradeCostS = match chain { | |
374 | 374 | case _ => | |
375 | 375 | if ((base58'2W' == $match0)) | |
376 | 376 | then 10000000000 | |
377 | 377 | else if ((base58'2T' == $match0)) | |
378 | 378 | then 100000000 | |
379 | 379 | else throw("Unknown chain") | |
380 | 380 | } | |
381 | 381 | ||
382 | 382 | let SEP = "__" | |
383 | 383 | ||
384 | 384 | let MULT6 = 1000000 | |
385 | 385 | ||
386 | 386 | let MULT8 = 100000000 | |
387 | 387 | ||
388 | 388 | let SSIZE = 25 | |
389 | 389 | ||
390 | 390 | let MSIZE = 100 | |
391 | 391 | ||
392 | 392 | let LSIZE = 225 | |
393 | 393 | ||
394 | 394 | let XLSIZE = 400 | |
395 | 395 | ||
396 | 396 | let XXLSIZE = 625 | |
397 | 397 | ||
398 | 398 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | let IdxCfgStakingDapp = 1 | |
402 | 402 | ||
403 | 403 | let IdxCfgEconomyDapp = 2 | |
404 | 404 | ||
405 | 405 | let IdxCfgGovernanceDapp = 3 | |
406 | 406 | ||
407 | 407 | let IdxCfgWlgDapp = 4 | |
408 | 408 | ||
409 | 409 | let IdxCfgPuzzlePoolDapp = 5 | |
410 | 410 | ||
411 | 411 | let IdxCfgInvestFundDapp = 6 | |
412 | 412 | ||
413 | 413 | let IdxCfgTournamentDapp = 7 | |
414 | 414 | ||
415 | 415 | func keyRestCfg () = "%s__restConfig" | |
416 | 416 | ||
417 | 417 | ||
418 | 418 | func keyRestAddress () = "%s__restAddr" | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
422 | 422 | ||
423 | 423 | ||
424 | 424 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
428 | 428 | ||
429 | 429 | let restCfg = readRestCfgOrFail(restContract) | |
430 | 430 | ||
431 | 431 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
432 | 432 | ||
433 | 433 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
434 | 434 | ||
435 | 435 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
436 | 436 | ||
437 | 437 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
438 | 438 | ||
439 | 439 | let puzzlePoolContract = getContractAddressOrFail(restCfg, IdxCfgPuzzlePoolDapp) | |
440 | 440 | ||
441 | 441 | let investFundContract = getContractAddressOrFail(restCfg, IdxCfgInvestFundDapp) | |
442 | 442 | ||
443 | 443 | let tournamentContract = getContractAddressOrFail(restCfg, IdxCfgTournamentDapp) | |
444 | 444 | ||
445 | 445 | let recLandNum = 0 | |
446 | 446 | ||
447 | 447 | let recLandSize = 1 | |
448 | 448 | ||
449 | 449 | let recTerrains = 2 | |
450 | 450 | ||
451 | 451 | let recContinent = 3 | |
452 | 452 | ||
453 | 453 | let wlgAssetIdKey = "wlg_assetId" | |
454 | 454 | ||
455 | 455 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "Not initialized yet") | |
456 | 456 | ||
457 | 457 | let IdxEffUser = 1 | |
458 | 458 | ||
459 | 459 | func keyResProportions () = "resTypesProportions" | |
460 | 460 | ||
461 | 461 | ||
462 | 462 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
463 | 463 | ||
464 | 464 | ||
465 | 465 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
466 | 466 | ||
467 | 467 | ||
468 | 468 | func asString (v) = match v { | |
469 | 469 | case s: String => | |
470 | 470 | s | |
471 | 471 | case _ => | |
472 | 472 | throw("fail to cast into String") | |
473 | 473 | } | |
474 | 474 | ||
475 | 475 | ||
476 | 476 | func asInt (v) = match v { | |
477 | 477 | case n: Int => | |
478 | 478 | n | |
479 | 479 | case _ => | |
480 | 480 | throw("fail to cast into Int") | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | func asBoolean (v) = match v { | |
485 | 485 | case s: Boolean => | |
486 | 486 | s | |
487 | 487 | case _ => | |
488 | 488 | throw("fail to cast into Boolean") | |
489 | 489 | } | |
490 | 490 | ||
491 | 491 | ||
492 | 492 | func numPiecesBySize (landSize) = match landSize { | |
493 | 493 | case _ => | |
494 | 494 | if (("S" == $match0)) | |
495 | 495 | then SSIZE | |
496 | 496 | else if (("M" == $match0)) | |
497 | 497 | then MSIZE | |
498 | 498 | else if (("L" == $match0)) | |
499 | 499 | then LSIZE | |
500 | 500 | else if (("XL" == $match0)) | |
501 | 501 | then XLSIZE | |
502 | 502 | else if (("XXL" == $match0)) | |
503 | 503 | then XXLSIZE | |
504 | 504 | else throw("Unknown land size") | |
505 | 505 | } | |
506 | 506 | ||
507 | 507 | ||
508 | 508 | func getVotingPower (userAddrStrOrEmpty) = { | |
509 | 509 | let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_") | |
510 | 510 | func adder (acc,item) = (acc + parseIntValue(item)) | |
511 | 511 | ||
512 | 512 | let totalPower = { | |
513 | 513 | let $l = props | |
514 | 514 | let $s = size($l) | |
515 | 515 | let $acc0 = 0 | |
516 | 516 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
517 | 517 | then $a | |
518 | 518 | else adder($a, $l[$i]) | |
519 | 519 | ||
520 | 520 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
521 | 521 | then $a | |
522 | 522 | else throw("List size exceeds 6") | |
523 | 523 | ||
524 | 524 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
525 | 525 | } | |
526 | 526 | let usersPower = valueOrElse(getInteger(stakingContract, keyStakedPiecesByOwner(userAddrStrOrEmpty)), 0) | |
527 | 527 | [totalPower, usersPower] | |
528 | 528 | } | |
529 | 529 | ||
530 | 530 | ||
531 | 531 | let USDTPRIZEPART = 500000 | |
532 | 532 | ||
533 | 533 | let adminsList = [toString(this), match chain { | |
534 | 534 | case _ => | |
535 | 535 | if ((base58'2W' == $match0)) | |
536 | 536 | then "3P64qEVzuGzBJuYfDXYisFtokJChSRa8uja" | |
537 | 537 | else if ((base58'2T' == $match0)) | |
538 | 538 | then "3N3gSFrTwgiLAFZHMuJrEttht1nPhnkpvjs" | |
539 | 539 | else throw("Unknown chain") | |
540 | 540 | }] | |
541 | 541 | ||
542 | 542 | func asListIntCompacted (val) = match val { | |
543 | 543 | case valAnyList: List[Any] => | |
544 | 544 | if ((size(valAnyList) != NUMRES)) | |
545 | 545 | then throw(("Array size is " + toString(size(valAnyList)))) | |
546 | 546 | else { | |
547 | 547 | func conv (acc,item) = match item { | |
548 | 548 | case it: Int => | |
549 | 549 | (acc :+ toString(it)) | |
550 | 550 | case _ => | |
551 | 551 | throw("List type is not Int") | |
552 | 552 | } | |
553 | 553 | ||
554 | 554 | let r = { | |
555 | 555 | let $l = valAnyList | |
556 | 556 | let $s = size($l) | |
557 | 557 | let $acc0 = nil | |
558 | 558 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
559 | 559 | then $a | |
560 | 560 | else conv($a, $l[$i]) | |
561 | 561 | ||
562 | 562 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
563 | 563 | then $a | |
564 | 564 | else throw("List size exceeds 6") | |
565 | 565 | ||
566 | 566 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
567 | 567 | } | |
568 | 568 | makeString(r, "_") | |
569 | 569 | } | |
570 | 570 | case _ => | |
571 | 571 | throw("fail to cast into List") | |
572 | 572 | } | |
573 | 573 | ||
574 | 574 | ||
575 | 575 | func asSplitResult (val) = match val { | |
576 | 576 | case t2: (List[Any], List[Any]) => | |
577 | 577 | $Tuple2(asListIntCompacted(t2._1), asListIntCompacted(t2._2)) | |
578 | 578 | case _ => | |
579 | 579 | throw("fail to cast into (List, List)") | |
580 | 580 | } | |
581 | 581 | ||
582 | 582 | ||
583 | 583 | func walletInternal (userAddressOpt) = { | |
584 | 584 | let addr = addressFromString(userAddressOpt) | |
585 | 585 | let balance = if (isDefined(addr)) | |
586 | 586 | then wavesBalance(value(addr)) | |
587 | 587 | else BalanceDetails(0, 0, 0, 0) | |
588 | 588 | let usdtBalance = if (isDefined(addr)) | |
589 | 589 | then assetBalance(value(addr), usdtAssetId) | |
590 | 590 | else 0 | |
591 | 591 | let wlgoldBalance = if (isDefined(addr)) | |
592 | 592 | then assetBalance(value(addr), wlgAssetId) | |
593 | 593 | else 0 | |
594 | 594 | let customName = valueOrElse(getString(stakingContract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
595 | 595 | let refByKey = keyAddressRefBy(userAddressOpt) | |
596 | 596 | let refBy = getString(stakingContract, refByKey) | |
597 | 597 | let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "") | |
598 | 598 | let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "") | |
599 | 599 | let pieces = getVotingPower(userAddressOpt)[IdxEffUser] | |
600 | 600 | let xp = valueOrElse(getInteger(stakingContract, keyUserXP(userAddressOpt)), 0) | |
601 | 601 | let lvl = valueOrElse(getInteger(stakingContract, keyUserLevel(userAddressOpt)), 0) | |
602 | 602 | let freePoints = valueOrElse(getInteger(stakingContract, keyUserFreePoints(userAddressOpt)), 0) | |
603 | 603 | let onboard = if (isDefined(refBy)) | |
604 | 604 | then (ARTONBOARD + (if (if (isDefined(addr)) | |
605 | 605 | then isDefined(getString(stakingContract, keyOnboardArtDuckActivatedBy(userAddressOpt))) | |
606 | 606 | else false) | |
607 | 607 | then ":1" | |
608 | 608 | else ":0")) | |
609 | 609 | else "" | |
610 | 610 | [("%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 | 611 | } | |
612 | 612 | ||
613 | 613 | ||
614 | 614 | func applyBonuses (landAssetId,pieces) = { | |
615 | 615 | let infraLevel = valueOrElse(getInteger(stakingContract, keyInfraLevelByAssetId(landAssetId)), 0) | |
616 | 616 | let artPieces = valueOrElse(getInteger(stakingContract, keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
617 | 617 | let add6 = (infraLevel / 6) | |
618 | 618 | let add7 = (infraLevel / 7) | |
619 | 619 | $Tuple3(infraLevel, artPieces, ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5)))) | |
620 | 620 | } | |
621 | 621 | ||
622 | 622 | ||
623 | 623 | func getWarehouseTotalVolume (volPrefix) = { | |
624 | 624 | let parts = split(volPrefix, "_") | |
625 | 625 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
626 | 626 | } | |
627 | 627 | ||
628 | 628 | ||
629 | 629 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
630 | 630 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
631 | 631 | let totS = toString(getWarehouseTotalVolume(volPrefix)) | |
632 | 632 | let whStr = valueOrElse(getString(stakingContract, whKey), ((((volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + totS) + "_") + totS)) | |
633 | 633 | split(whStr, ":") | |
634 | 634 | } | |
635 | 635 | ||
636 | 636 | ||
637 | 637 | func duckInfoTuple (duckAssetId) = { | |
638 | 638 | let maxHP = maxHealth(valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0)) | |
639 | 639 | $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 | 640 | } | |
641 | 641 | ||
642 | 642 | ||
643 | 643 | func duckInfoArray (duckAssetId,owner,duckInf) = { | |
644 | 644 | let customName = valueOrElse(getString(stakingContract, keyDuckAssetIdToCustomName(duckAssetId)), duckInf._2) | |
645 | 645 | let chars = valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0") | |
646 | 646 | let xp = valueOrElse(getInteger(stakingContract, keyDuckXP(duckAssetId)), 0) | |
647 | 647 | let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0) | |
648 | 648 | let freePoints = valueOrElse(getInteger(stakingContract, keyDuckFreePoints(duckAssetId)), 0) | |
649 | 649 | let equipm = valueOrElse(getString(stakingContract, keyDuckEquipment(duckAssetId)), ";_;_;_;_;_;") | |
650 | 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)] | |
651 | 651 | } | |
652 | 652 | ||
653 | 653 | ||
654 | 654 | func landInfoArray (landAssetId,owner,stakedTime) = if ((landAssetId == "")) | |
655 | 655 | then throw("landAssetId is required") | |
656 | 656 | else { | |
657 | 657 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
658 | 658 | let d = split(a.description, "_") | |
659 | 659 | let landNum = if ((a.quantity > 0)) | |
660 | 660 | then d[recLandNum] | |
661 | 661 | else ("-" + d[recLandNum]) | |
662 | 662 | let pieces = numPiecesBySize(d[recLandSize]) | |
663 | 663 | let productivity = applyBonuses(landAssetId, pieces) | |
664 | 664 | let deltaTime = (lastBlock.timestamp - stakedTime) | |
665 | 665 | let availRes = if ((stakedTime > 0)) | |
666 | 666 | then fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS) | |
667 | 667 | else 0 | |
668 | 668 | let needMat = fraction(InfraUpgradeCostS, (pieces * (productivity._1 + 1)), SSIZE) | |
669 | 669 | let globalAndLocal = if ((stakedTime > 0)) | |
670 | 670 | then asSplitResult(invoke(stakingContract, "splitByGlobalAndLocalWeightsREADONLY", [needMat, availRes, d[recTerrains]], nil)) | |
671 | 671 | else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "") | |
672 | 672 | let customName = valueOrElse(getString(stakingContract, keyLandAssetIdToCustomName(landAssetId)), ((d[recContinent] + "-") + d[recLandNum])) | |
673 | 673 | [("%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 | 674 | } | |
675 | 675 | ||
676 | 676 | ||
677 | 677 | func landOrderInfoArray (landAssetId,owner) = if ((landAssetId == "")) | |
678 | 678 | then throw("landAssetId is required") | |
679 | 679 | else { | |
680 | 680 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
681 | 681 | let d = split(a.description, "_") | |
682 | 682 | let pieces = numPiecesBySize(d[recLandSize]) | |
683 | 683 | let productivity = applyBonuses(landAssetId, pieces) | |
684 | 684 | [("%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 | 685 | } | |
686 | 686 | ||
687 | 687 | ||
688 | 688 | @Callable(i) | |
689 | 689 | func constructorV1 (contracts) = if ((i.caller != this)) | |
690 | 690 | then throw("permissions denied") | |
691 | 691 | else { | |
692 | 692 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
693 | 693 | ||
694 | 694 | let descr = { | |
695 | 695 | let $l = contracts | |
696 | 696 | let $s = size($l) | |
697 | 697 | let $acc0 = "" | |
698 | 698 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
699 | 699 | then $a | |
700 | 700 | else descriptor($a, $l[$i]) | |
701 | 701 | ||
702 | 702 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
703 | 703 | then $a | |
704 | 704 | else throw("List size exceeds 10") | |
705 | 705 | ||
706 | 706 | $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 | 707 | } | |
708 | 708 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRestAddress(), toString(this))] | |
709 | 709 | } | |
710 | 710 | ||
711 | 711 | ||
712 | 712 | ||
713 | 713 | @Callable(i) | |
714 | 714 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
715 | 715 | ||
716 | 716 | ||
717 | 717 | ||
718 | 718 | @Callable(i) | |
719 | 719 | func duckByOwnerInfoREADONLY (userAddress) = { | |
720 | 720 | let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddress)) | |
721 | 721 | $Tuple2(nil, if (if (isDefined(addressFromString(userAddress))) | |
722 | 722 | then isDefined(stakedDuck) | |
723 | 723 | else false) | |
724 | 724 | then { | |
725 | 725 | let duckAssetId = value(stakedDuck) | |
726 | 726 | duckInfoArray(duckAssetId, userAddress, duckInfoTuple(duckAssetId)) | |
727 | 727 | } | |
728 | 728 | else duckInfoArray("", userAddress, $Tuple5(-1, "", "", -1, ""))) | |
729 | 729 | } | |
730 | 730 | ||
731 | 731 | ||
732 | 732 | ||
733 | 733 | @Callable(i) | |
734 | 734 | func duckByAssetIdInfoREADONLY (duckAssetId) = { | |
735 | 735 | let owner = getString(stakingContract, keyDuckIdToOwner(duckAssetId)) | |
736 | 736 | $Tuple2(nil, duckInfoArray(duckAssetId, if (isDefined(owner)) | |
737 | 737 | then value(owner) | |
738 | 738 | else "", duckInfoTuple(duckAssetId))) | |
739 | 739 | } | |
740 | 740 | ||
741 | 741 | ||
742 | 742 | ||
743 | 743 | @Callable(i) | |
744 | 744 | func landByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
745 | 745 | then throw("landAssetId is required") | |
746 | 746 | else { | |
747 | 747 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
748 | 748 | let owner = if ((stakedTime > 0)) | |
749 | 749 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
750 | 750 | else "" | |
751 | 751 | $Tuple2(nil, landInfoArray(landAssetId, owner, stakedTime)) | |
752 | 752 | } | |
753 | 753 | ||
754 | 754 | ||
755 | 755 | ||
756 | 756 | @Callable(i) | |
757 | 757 | func stakedLandsByOwnerInfoREADONLY (landOwnerAddress) = if ((landOwnerAddress == "")) | |
758 | 758 | then throw("landOwnerAddress is required") | |
759 | 759 | else { | |
760 | 760 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress)) | |
761 | 761 | let lands = if (isDefined(landsStr)) | |
762 | 762 | then split_51C(value(landsStr), "_") | |
763 | 763 | else nil | |
764 | 764 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
765 | 765 | then throw("landAssetId is required") | |
766 | 766 | else { | |
767 | 767 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
768 | 768 | (acc :+ landInfoArray(landAssetId, landOwnerAddress, stakedTime)) | |
769 | 769 | } | |
770 | 770 | ||
771 | 771 | let r = { | |
772 | 772 | let $l = lands | |
773 | 773 | let $s = size($l) | |
774 | 774 | let $acc0 = nil | |
775 | 775 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
776 | 776 | then $a | |
777 | 777 | else oneLand($a, $l[$i]) | |
778 | 778 | ||
779 | 779 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
780 | 780 | then $a | |
781 | 781 | else throw("List size exceeds 100") | |
782 | 782 | ||
783 | 783 | $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 | 784 | } | |
785 | 785 | $Tuple2(nil, r) | |
786 | 786 | } | |
787 | 787 | ||
788 | 788 | ||
789 | 789 | ||
790 | 790 | @Callable(i) | |
791 | 791 | func landsByIdsInfoREADONLY (landAssetIds) = { | |
792 | 792 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
793 | 793 | then throw("landAssetId is required") | |
794 | 794 | else { | |
795 | 795 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
796 | 796 | let owner = if ((stakedTime > 0)) | |
797 | 797 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
798 | 798 | else "" | |
799 | 799 | (acc :+ landInfoArray(landAssetId, owner, stakedTime)) | |
800 | 800 | } | |
801 | 801 | ||
802 | 802 | let r = { | |
803 | 803 | let $l = landAssetIds | |
804 | 804 | let $s = size($l) | |
805 | 805 | let $acc0 = nil | |
806 | 806 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
807 | 807 | then $a | |
808 | 808 | else oneLand($a, $l[$i]) | |
809 | 809 | ||
810 | 810 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
811 | 811 | then $a | |
812 | 812 | else throw("List size exceeds 100") | |
813 | 813 | ||
814 | 814 | $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 | 815 | } | |
816 | 816 | $Tuple2(nil, r) | |
817 | 817 | } | |
818 | 818 | ||
819 | 819 | ||
820 | 820 | ||
821 | 821 | @Callable(i) | |
822 | 822 | func warehouseOrderByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
823 | 823 | then throw("landAssetId is required") | |
824 | 824 | else { | |
825 | 825 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
826 | 826 | let owner = if ((stakedTime > 0)) | |
827 | 827 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
828 | 828 | else "" | |
829 | 829 | $Tuple2(nil, landOrderInfoArray(landAssetId, owner)) | |
830 | 830 | } | |
831 | 831 | ||
832 | 832 | ||
833 | 833 | ||
834 | 834 | @Callable(i) | |
835 | 835 | func ordersByLandIdsInfoREADONLY (landAssetIds) = { | |
836 | 836 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
837 | 837 | then throw("landAssetId is required") | |
838 | 838 | else { | |
839 | 839 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
840 | 840 | let owner = if ((stakedTime > 0)) | |
841 | 841 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
842 | 842 | else "" | |
843 | 843 | (acc :+ landOrderInfoArray(landAssetId, owner)) | |
844 | 844 | } | |
845 | 845 | ||
846 | 846 | let r = { | |
847 | 847 | let $l = landAssetIds | |
848 | 848 | let $s = size($l) | |
849 | 849 | let $acc0 = nil | |
850 | 850 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
851 | 851 | then $a | |
852 | 852 | else oneLand($a, $l[$i]) | |
853 | 853 | ||
854 | 854 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
855 | 855 | then $a | |
856 | 856 | else throw("List size exceeds 40") | |
857 | 857 | ||
858 | 858 | $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 | 859 | } | |
860 | 860 | $Tuple2(nil, r) | |
861 | 861 | } | |
862 | 862 | ||
863 | 863 | ||
864 | 864 | ||
865 | 865 | @Callable(i) | |
866 | 866 | func cancelWarehouseOrders (landAssetIds) = if ((i.caller != this)) | |
867 | 867 | then throw("permission denied") | |
868 | 868 | else { | |
869 | 869 | let blocked = getBoolean(stakingContract, keyBlocked()) | |
870 | 870 | if (if (!(isDefined(blocked))) | |
871 | 871 | then true | |
872 | 872 | else (value(blocked) == false)) | |
873 | 873 | then throw("Contracts should be blocked before canceling orders") | |
874 | 874 | else { | |
875 | 875 | func oneLand (a,landAssetId) = if ((landAssetId == "")) | |
876 | 876 | then throw("landAssetId is required") | |
877 | 877 | else { | |
878 | 878 | 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 | 879 | if (if (a) | |
880 | 880 | then true | |
881 | 881 | else c) | |
882 | 882 | then !(if (a) | |
883 | 883 | then c | |
884 | 884 | else false) | |
885 | 885 | else false | |
886 | 886 | } | |
887 | 887 | ||
888 | 888 | let r = { | |
889 | 889 | let $l = landAssetIds | |
890 | 890 | let $s = size($l) | |
891 | 891 | let $acc0 = false | |
892 | 892 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
893 | 893 | then $a | |
894 | 894 | else oneLand($a, $l[$i]) | |
895 | 895 | ||
896 | 896 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
897 | 897 | then $a | |
898 | 898 | else throw("List size exceeds 30") | |
899 | 899 | ||
900 | 900 | $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 | 901 | } | |
902 | 902 | $Tuple2(nil, r) | |
903 | 903 | } | |
904 | 904 | } | |
905 | 905 | ||
906 | 906 | ||
907 | 907 | ||
908 | 908 | @Callable(i) | |
909 | 909 | func fixWarehouseFormats (landAssetIds) = if ((i.caller != this)) | |
910 | 910 | then throw("permission denied") | |
911 | 911 | else { | |
912 | 912 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
913 | 913 | then throw("landAssetId is required") | |
914 | 914 | else (acc + size(asString(invoke(stakingContract, "fixWarehouseFormat", [landAssetId], nil)))) | |
915 | 915 | ||
916 | 916 | let r = { | |
917 | 917 | let $l = landAssetIds | |
918 | 918 | let $s = size($l) | |
919 | 919 | let $acc0 = 0 | |
920 | 920 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
921 | 921 | then $a | |
922 | 922 | else oneLand($a, $l[$i]) | |
923 | 923 | ||
924 | 924 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
925 | 925 | then $a | |
926 | 926 | else throw("List size exceeds 25") | |
927 | 927 | ||
928 | 928 | $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 | 929 | } | |
930 | 930 | $Tuple2(nil, r) | |
931 | 931 | } | |
932 | 932 | ||
933 | 933 | ||
934 | 934 | ||
935 | 935 | @Callable(i) | |
936 | 936 | func fixStakedPieces (users) = if ((i.caller != this)) | |
937 | 937 | then throw("permission denied") | |
938 | 938 | else { | |
939 | 939 | func oneUser (acc,addr) = if ((addr == "")) | |
940 | 940 | then throw("address is required") | |
941 | 941 | else (acc + asInt(invoke(stakingContract, "fixStakedPieces", [addr], nil))) | |
942 | 942 | ||
943 | 943 | let r = { | |
944 | 944 | let $l = users | |
945 | 945 | let $s = size($l) | |
946 | 946 | let $acc0 = 0 | |
947 | 947 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
948 | 948 | then $a | |
949 | 949 | else oneUser($a, $l[$i]) | |
950 | 950 | ||
951 | 951 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
952 | 952 | then $a | |
953 | 953 | else throw("List size exceeds 16") | |
954 | 954 | ||
955 | 955 | $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 | 956 | } | |
957 | 957 | $Tuple2(nil, r) | |
958 | 958 | } | |
959 | 959 | ||
960 | 960 | ||
961 | 961 | ||
962 | 962 | @Callable(i) | |
963 | 963 | func fixStakedLands (landAssetIds) = { | |
964 | 964 | let caller = toString(i.caller) | |
965 | 965 | if (!(containsElement(adminsList, caller))) | |
966 | 966 | then throw("Permission denied") | |
967 | 967 | else { | |
968 | 968 | let r = asInt(invoke(stakingContract, "fixContinentProportions", [landAssetIds], nil)) | |
969 | 969 | $Tuple2(nil, r) | |
970 | 970 | } | |
971 | 971 | } | |
972 | 972 | ||
973 | 973 | ||
974 | 974 | ||
975 | 975 | @Callable(i) | |
976 | 976 | func sendUsdtPrize (userAddress) = if ((i.caller != stakingContract)) | |
977 | 977 | then throw("permission denied") | |
978 | 978 | else { | |
979 | 979 | let amt = fraction(assetBalance(this, usdtAssetId), USDTPRIZEPART, MULT6) | |
980 | 980 | $Tuple2([ScriptTransfer(addressFromStringValue(userAddress), amt, usdtAssetId)], amt) | |
981 | 981 | } | |
982 | 982 | ||
983 | 983 | ||
984 | 984 | ||
985 | 985 | @Callable(i) | |
986 | 986 | func getEmergencyServiceDataREADONLY () = { | |
987 | 987 | let existStr = getString(economyContract, keyEsWarehouse()) | |
988 | 988 | let existAmounts = if (isDefined(existStr)) | |
989 | - | then split(value(existStr), "_") | |
989 | + | then split_4C(value(existStr), "_") | |
990 | 990 | else nil | |
991 | 991 | func singleProd (acc,recipeStr) = { | |
992 | 992 | let n = acc._2 | |
993 | 993 | let recipe = split(recipeStr, "_") | |
994 | 994 | let maxAmount = if ((n == 0)) | |
995 | 995 | then (ESMAXPACKAGES * PRODUCTPKGSIZE) | |
996 | 996 | else 0 | |
997 | 997 | let existAmount = if ((size(existAmounts) > n)) | |
998 | 998 | then parseIntValue(existAmounts[n]) | |
999 | 999 | else 0 | |
1000 | 1000 | let totalMat = getRecipeMaterials(recipe) | |
1001 | 1001 | let buyPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1002 | 1002 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1003 | 1003 | let y = makeString([toString(maxAmount), toString(existAmount), toString(buyPrice), toString(sellPrice)], "_") | |
1004 | 1004 | $Tuple2((acc._1 :+ y), (n + 1)) | |
1005 | 1005 | } | |
1006 | 1006 | ||
1007 | 1007 | let s = makeString_2C(( let $l = productionMatrix | |
1008 | 1008 | let $s = size($l) | |
1009 | 1009 | let $acc0 = $Tuple2(nil, 0) | |
1010 | 1010 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1011 | 1011 | then $a | |
1012 | 1012 | else singleProd($a, $l[$i]) | |
1013 | 1013 | ||
1014 | 1014 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1015 | 1015 | then $a | |
1016 | 1016 | else throw("List size exceeds 50") | |
1017 | 1017 | ||
1018 | 1018 | $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 | 1019 | let result = ("%s%s__emergencyServiceData__" + s) | |
1020 | 1020 | $Tuple2(nil, result) | |
1021 | 1021 | } | |
1022 | 1022 | ||
1023 | 1023 | ||
1024 | 1024 | ||
1025 | 1025 | @Callable(i) | |
1026 | 1026 | func wlgStatsREADONLY (userAddrOpt) = { | |
1027 | 1027 | let curStats = getWlgStats(userAddrOpt, [restContract, stakingContract, economyContract, govContract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
1028 | 1028 | $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 | 1029 | } | |
1030 | 1030 | ||
1031 | 1031 | ||
1032 | 1032 | ||
1033 | 1033 | @Callable(i) | |
1034 | 1034 | func tournamentStatsREADONLY (tournamentId) = { | |
1035 | 1035 | let tData = getTourData(tournamentContract, tournamentId) | |
1036 | 1036 | let static = tData[idxStatic] | |
1037 | 1037 | let dynamic = tData[idxDynamic] | |
1038 | 1038 | let winDuck = if ((dynamic[tDynamicWinDuck] == "")) | |
1039 | 1039 | then " " | |
1040 | 1040 | else dynamic[tDynamicWinDuck] | |
1041 | 1041 | let registrants = valueOrElse(getString(tournamentContract, keyAllRegistrantsByTour(tournamentId)), "") | |
1042 | 1042 | $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 | 1043 | } | |
1044 | 1044 | ||
1045 | 1045 | ||
1046 | 1046 | ||
1047 | 1047 | @Callable(i) | |
1048 | 1048 | func lastTournamentStatsREADONLY () = { | |
1049 | 1049 | let tournamentId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
1050 | 1050 | let static = split(valueOrElse(getString(tournamentContract, keyTourStaticDataById(tournamentId)), "%s%d%d%d%d%d____________"), SEP) | |
1051 | 1051 | let dynamic = split(valueOrElse(getString(tournamentContract, keyTourDynamicDataById(tournamentId)), "%s%s%d%d%d__________"), SEP) | |
1052 | 1052 | let winDuck = if ((dynamic[tDynamicWinDuck] == "")) | |
1053 | 1053 | then " " | |
1054 | 1054 | else dynamic[tDynamicWinDuck] | |
1055 | 1055 | let registrants = valueOrElse(getString(tournamentContract, keyAllRegistrantsByTour(tournamentId)), "") | |
1056 | 1056 | $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 | 1057 | } | |
1058 | 1058 | ||
1059 | 1059 | ||
1060 | 1060 | ||
1061 | 1061 | @Callable(i) | |
1062 | 1062 | func tournamentDuckStatsREADONLY (tId,duckAssetId) = { | |
1063 | 1063 | let isDuckReg = valueOrElse(getBoolean(tournamentContract, keyIsRegisteredByTourAndDuck(tId, duckAssetId)), false) | |
1064 | 1064 | let lastDuckAttempt = valueOrElse(getInteger(tournamentContract, keyLastAttemptByTourAndDuck(tId, duckAssetId)), 0) | |
1065 | 1065 | let bestDuckResult = valueOrElse(getInteger(tournamentContract, keyBestResultByTourAndDuck(tId, duckAssetId)), 0) | |
1066 | 1066 | $Tuple2(nil, [("%s%s__tournamentDuckStats__" + makeString([toString(isDuckReg), toString(lastDuckAttempt), toString(bestDuckResult)], "_"))]) | |
1067 | 1067 | } | |
1068 | 1068 | ||
1069 | 1069 |
github/deemru/w8io/169f3d6 128.70 ms ◑