tx · 5r3XLV17Yia6dNEhJF62ooeEkfL3UtbHsZjLTmbqUP1A 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.05500000 Waves 2023.05.23 00:56 [2589751] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "5r3XLV17Yia6dNEhJF62ooeEkfL3UtbHsZjLTmbqUP1A", "fee": 5500000, "feeAssetId": null, "timestamp": 1684792594822, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "5uJ6dKX1f5snP8PBDdtq8iwt559haMNLw4u3Zobk5GxBo8JJZXQ3cK7od6kmrZTRDN8s2VGgiLtL1AiUayJwCJVT" ], "script": "base64:BgKUAQgCEgMKAQgSAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgQKAgEIEgQKAgEBEgQKAggIEgASBAoCAgISAwoBCBIDCgEIEgQKAggIEgMKARgSAwoBGBIECgIICBIECgIICBIDCgEIEgUKAwgICBIECgIICBIDCgEBEgUKAwEBCBIDCgEIEgMKAQiXAQAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4ADWluY3ViYXRvckFkZHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQRWt0VnV4MlJoY2hTTjYzRHNEbzRiNG16NFFxektTZUR2AwkAAAIBAVQFByRtYXRjaDAFBHRoaXMJAA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VudHJ5AgUHb2xkc0tleQUHbmV3T2xkcwkAzAgCBQxwcm9sb2dBY3Rpb24FA25pbAAAAWkBHHNwbGl0QnlHbG9iYWxXZWlnaHRzUkVBRE9OTFkBBmFtb3VudAkAlAoCBQNuaWwJARJnZXROZWVkZWRNYXRlcmlhbHMBBQZhbW91bnQBaQEkc3BsaXRCeUdsb2JhbEFuZExvY2FsV2VpZ2h0c1JFQURPTkxZAwltYXRBbW91bnQJcmVzQW1vdW50CHRlcnJhaW5zBA10ZXJyYWluQ291bnRzCQENY291bnRUZXJyYWlucwEFCHRlcnJhaW5zCQCUCgIFA25pbAkAlAoCCQESZ2V0TmVlZGVkTWF0ZXJpYWxzAQUJbWF0QW1vdW50CQETZGlzdHJpYnV0ZUJ5V2VpZ2h0cwIFCXJlc0Ftb3VudAUNdGVycmFpbkNvdW50cwFpARNnZXRCYWNrcGFja1JFQURPTkxZAQtkdWNrQXNzZXRJZAkAlAoCBQNuaWwJALkJAgkBC2dldEJhY2twYWNrAQkBEWtleUJhY2twYWNrQnlEdWNrAQULZHVja0Fzc2V0SWQCAToBaQEUZ2V0V2FyZWhvdXNlUkVBRE9OTFkBC2xhbmRBc3NldElkBAVhc3NldAkBBXZhbHVlAQkA7AcBCQDZBAEFC2xhbmRBc3NldElkBAlsYW5kSW5kZXgJAGkCCQEPbnVtUGllY2VzQnlTaXplAQkAkQMCCQC1CQIIBQVhc3NldAtkZXNjcmlwdGlvbgIBXwULcmVjTGFuZFNpemUFBVNTSVpFBAppbmZyYUxldmVsCQELdmFsdWVPckVsc2UCCQCfCAEJARZrZXlJbmZyYUxldmVsQnlBc3NldElkAQULbGFuZEFzc2V0SWQAAAkAlAoCBQNuaWwJALoJAgkBDGdldFdhcmVob3VzZQMJARJrZXlXYXJlaG91c2VCeUxhbmQBBQtsYW5kQXNzZXRJZAUJbGFuZEluZGV4BQppbmZyYUxldmVsAgE6AA/fUPg=", "height": 2589751, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3PrtLkei6Pf89P6qFfWbKVL7csAw9edmfdKjeeM7cate Next: Fuke2vCseUMvskDqhdD79hcsXP5LNt5a5ZGun1dWR3PJ Diff:
Old | New | Differences | |
---|---|---|---|
806 | 806 | else $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + am)) | |
807 | 807 | } | |
808 | 808 | ||
809 | - | let p = { | |
810 | - | let $l = prodParts | |
811 | - | let $s = size($l) | |
812 | - | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
813 | - | func $f2_1 ($a,$i) = if (($i >= $s)) | |
814 | - | then $a | |
815 | - | else mvP($a, $l[$i]) | |
809 | + | let p = if ((size(prodParts) != 0)) | |
810 | + | then { | |
811 | + | let $l = prodParts | |
812 | + | let $s = size($l) | |
813 | + | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
814 | + | func $f2_1 ($a,$i) = if (($i >= $s)) | |
815 | + | then $a | |
816 | + | else mvP($a, $l[$i]) | |
816 | 817 | ||
817 | - | func $f2_2 ($a,$i) = if (($i >= $s)) | |
818 | - | then $a | |
819 | - | else throw("List size exceeds 50") | |
818 | + | func $f2_2 ($a,$i) = if (($i >= $s)) | |
819 | + | then $a | |
820 | + | else throw("List size exceeds 50") | |
820 | 821 | ||
821 | - | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_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) | |
822 | - | } | |
822 | + | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_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) | |
823 | + | } | |
824 | + | else $Tuple4(0, currWhProd, currentPackProd, m._4) | |
823 | 825 | let volSaldo = p._4 | |
824 | 826 | if ((volSaldo > whSpaceLeft)) | |
825 | 827 | then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left")) | |
899 | 901 | ||
900 | 902 | ||
901 | 903 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
902 | - | let $ | |
904 | + | let $t02503425573 = if ((claimMode == claimModeWh)) | |
903 | 905 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
904 | 906 | else { | |
905 | 907 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
909 | 911 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
910 | 912 | else $Tuple2(loc[locIdxId], duckAssetId) | |
911 | 913 | } | |
912 | - | let landAssetId = $ | |
913 | - | let duckId = $ | |
914 | + | let landAssetId = $t02503425573._1 | |
915 | + | let duckId = $t02503425573._2 | |
914 | 916 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
915 | 917 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
916 | 918 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
961 | 963 | let currentPack = getBackpack(bpKey) | |
962 | 964 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
963 | 965 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
964 | - | let $ | |
966 | + | let $t02822128724 = if ((claimMode == claimModeWh)) | |
965 | 967 | then $Tuple2(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes]) | |
966 | 968 | else if ((claimMode == claimModeDuck)) | |
967 | 969 | then $Tuple2(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece)) | |
968 | 970 | else distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
969 | - | let whRes = $ | |
970 | - | let bpRes = $ | |
971 | + | let whRes = $t02822128724._1 | |
972 | + | let bpRes = $t02822128724._2 | |
971 | 973 | $Tuple5([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]], whKey, [currentWh[whIdxVol], whRes, currentWh[whIdxMat], currentWh[whIdxProd], currentWh[whIdxLockedVol]]) | |
972 | 974 | } | |
973 | 975 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let chain = take(drop(this.bytes, 1), 1) | |
5 | 5 | ||
6 | 6 | let usdtAssetId = match chain { | |
7 | 7 | case _ => | |
8 | 8 | if ((base58'2W' == $match0)) | |
9 | 9 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
10 | 10 | else if ((base58'2T' == $match0)) | |
11 | 11 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let incubatorAddr = match chain { | |
16 | 16 | case _ => | |
17 | 17 | if ((base58'2W' == $match0)) | |
18 | 18 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
19 | 19 | else if ((base58'2T' == $match0)) | |
20 | 20 | then this | |
21 | 21 | else throw("Unknown chain") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let breederAddr = match chain { | |
25 | 25 | case _ => | |
26 | 26 | if ((base58'2W' == $match0)) | |
27 | 27 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
28 | 28 | else if ((base58'2T' == $match0)) | |
29 | 29 | then this | |
30 | 30 | else throw("Unknown chain") | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | let defaultRestAddressStr = match chain { | |
34 | 34 | case _ => | |
35 | 35 | if ((base58'2W' == $match0)) | |
36 | 36 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
37 | 37 | else if ((base58'2T' == $match0)) | |
38 | 38 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
39 | 39 | else throw("Unknown chain") | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | let pub = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
43 | 43 | ||
44 | 44 | let HEALCOST = 10000 | |
45 | 45 | ||
46 | 46 | let LANDPREFIX = "LAND" | |
47 | 47 | ||
48 | 48 | let DUCKPREFIX = "DUCK" | |
49 | 49 | ||
50 | 50 | let DEFAULTLOCATION = "Africa_F_Africa" | |
51 | 51 | ||
52 | 52 | let NUMRES = 6 | |
53 | 53 | ||
54 | 54 | let SSIZE = 25 | |
55 | 55 | ||
56 | 56 | let MSIZE = 100 | |
57 | 57 | ||
58 | 58 | let LSIZE = 225 | |
59 | 59 | ||
60 | 60 | let XLSIZE = 400 | |
61 | 61 | ||
62 | 62 | let XXLSIZE = 625 | |
63 | 63 | ||
64 | 64 | let DAILYRESBYPIECE = 3456000 | |
65 | 65 | ||
66 | 66 | let DAYMILLIS = 86400000 | |
67 | 67 | ||
68 | 68 | let FIVEMINUTESMILLIS = 300000 | |
69 | 69 | ||
70 | 70 | let RESOURCEPRICEMIN = 39637 | |
71 | 71 | ||
72 | 72 | let WHMULTIPLIER = 10000000000 | |
73 | 73 | ||
74 | 74 | let RENAMINGCOST = 5000000 | |
75 | 75 | ||
76 | 76 | let MAXNAMELEN = 50 | |
77 | 77 | ||
78 | 78 | let InfraUpgradeCostS = match chain { | |
79 | 79 | case _ => | |
80 | 80 | if ((base58'2W' == $match0)) | |
81 | 81 | then 10000000000 | |
82 | 82 | else if ((base58'2T' == $match0)) | |
83 | 83 | then 100000000 | |
84 | 84 | else throw("Unknown chain") | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | let InfraUpgradeCostSUsdt = match chain { | |
88 | 88 | case _ => | |
89 | 89 | if ((base58'2W' == $match0)) | |
90 | 90 | then 10000000 | |
91 | 91 | else if ((base58'2T' == $match0)) | |
92 | 92 | then 10000000 | |
93 | 93 | else throw("Unknown chain") | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | let EXPMATERIALS = match chain { | |
97 | 97 | case _ => | |
98 | 98 | if ((base58'2W' == $match0)) | |
99 | 99 | then 252289527462 | |
100 | 100 | else if ((base58'2T' == $match0)) | |
101 | 101 | then 2522895274 | |
102 | 102 | else throw("Unknown chain") | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | let EXPUSDT = match chain { | |
106 | 106 | case _ => | |
107 | 107 | if ((base58'2W' == $match0)) | |
108 | 108 | then 250000000 | |
109 | 109 | else if ((base58'2T' == $match0)) | |
110 | 110 | then 250000000 | |
111 | 111 | else throw("Unknown chain") | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | let SEP = "__" | |
115 | 115 | ||
116 | 116 | let MULT6 = 1000000 | |
117 | 117 | ||
118 | 118 | let FIVEX = toBigInt(5) | |
119 | 119 | ||
120 | 120 | let TWENTYX = toBigInt(20) | |
121 | 121 | ||
122 | 122 | let TWENTY2X = toBigInt((20 * 20)) | |
123 | 123 | ||
124 | 124 | let TWENTY3X = toBigInt(((20 * 20) * 20)) | |
125 | 125 | ||
126 | 126 | let TWENTY4X = toBigInt((((20 * 20) * 20) * 20)) | |
127 | 127 | ||
128 | 128 | let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
129 | 129 | ||
130 | 130 | let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
131 | 131 | ||
132 | 132 | let continents = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
133 | 133 | ||
134 | 134 | let ARTPRESALE = "PRESALE" | |
135 | 135 | ||
136 | 136 | let PRESALENUMLANDS = 500 | |
137 | 137 | ||
138 | 138 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | let IdxCfgStakingDapp = 1 | |
145 | 145 | ||
146 | 146 | let IdxCfgEconomyDapp = 2 | |
147 | 147 | ||
148 | 148 | let IdxCfgGovernanceDapp = 3 | |
149 | 149 | ||
150 | 150 | func keyRestCfg () = "%s__restConfig" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyRestAddress () = "%s__restAddr" | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
163 | 163 | ||
164 | 164 | let restCfg = readRestCfgOrFail(restContract) | |
165 | 165 | ||
166 | 166 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
167 | 167 | ||
168 | 168 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
169 | 169 | ||
170 | 170 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func keyNextFreeLandNum () = "nextLandNum" | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func keyLandToAssetId (landNum) = ("landToAsset_" + landNum) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyNftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func keyLandCustomNameToAssetId (name) = ("landByCustomName_" + name) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func keyCustomNameToAddress (name) = ("accountByCustomName_" + name) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func keyOldies () = "oldiesList" | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func keyPresaleArtActivatedByAssetIdAndOwner (assetId,ownerAddr) = ((("presaleArtActivatedByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func keyLandArtStatusByTypeAssetIdAndOwner (type,assetId,ownerAddr) = makeString(["landArtStatusByTypeAssetIdAndOwner", type, assetId, ownerAddr], "_") | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func keyLandNumToOwner (landNum) = ("landOwner_" + landNum) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func keyResProportions () = "resTypesProportions" | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func keyBlocked () = "contractsBlocked" | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | let recLandNum = 0 | |
270 | 270 | ||
271 | 271 | let recLandSize = 1 | |
272 | 272 | ||
273 | 273 | let recTerrains = 2 | |
274 | 274 | ||
275 | 275 | let recContinent = 3 | |
276 | 276 | ||
277 | 277 | let locIdxContinent = 0 | |
278 | 278 | ||
279 | 279 | let locIdxType = 1 | |
280 | 280 | ||
281 | 281 | let locIdxId = 2 | |
282 | 282 | ||
283 | 283 | let bpIdxLevel = 0 | |
284 | 284 | ||
285 | 285 | let bpIdxRes = 1 | |
286 | 286 | ||
287 | 287 | let bpIdxMat = 2 | |
288 | 288 | ||
289 | 289 | let bpIdxProd = 3 | |
290 | 290 | ||
291 | 291 | let whIdxVol = 0 | |
292 | 292 | ||
293 | 293 | let whIdxRes = 1 | |
294 | 294 | ||
295 | 295 | let whIdxMat = 2 | |
296 | 296 | ||
297 | 297 | let whIdxProd = 3 | |
298 | 298 | ||
299 | 299 | let whIdxLockedVol = 4 | |
300 | 300 | ||
301 | 301 | let claimModeWh = 0 | |
302 | 302 | ||
303 | 303 | let claimModeDuck = 1 | |
304 | 304 | ||
305 | 305 | let claimModeWhThenDuck = 2 | |
306 | 306 | ||
307 | 307 | let flHealth = 0 | |
308 | 308 | ||
309 | 309 | let flMission = 1 | |
310 | 310 | ||
311 | 311 | let flObstacles = 2 | |
312 | 312 | ||
313 | 313 | let flWinds = 3 | |
314 | 314 | ||
315 | 315 | let flPath = 4 | |
316 | 316 | ||
317 | 317 | let flTimestamp = 5 | |
318 | 318 | ||
319 | 319 | let flBonus = 6 | |
320 | 320 | ||
321 | 321 | func asString (v) = match v { | |
322 | 322 | case s: String => | |
323 | 323 | s | |
324 | 324 | case _ => | |
325 | 325 | throw("fail to cast into String") | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | func asInt (v) = match v { | |
330 | 330 | case n: Int => | |
331 | 331 | n | |
332 | 332 | case _ => | |
333 | 333 | throw("fail to cast into Int") | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | func distributeByWeights (total,weights) = { | |
338 | 338 | let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5]) | |
339 | 339 | if ((0 >= sum)) | |
340 | 340 | then throw("Zero weights sum") | |
341 | 341 | else { | |
342 | 342 | let norm6 = fraction(total, MULT6, sum) | |
343 | 343 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
344 | 344 | ||
345 | 345 | let $l = weights | |
346 | 346 | let $s = size($l) | |
347 | 347 | let $acc0 = nil | |
348 | 348 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
349 | 349 | then $a | |
350 | 350 | else normalizer($a, $l[$i]) | |
351 | 351 | ||
352 | 352 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
353 | 353 | then $a | |
354 | 354 | else throw("List size exceeds 6") | |
355 | 355 | ||
356 | 356 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
357 | 357 | } | |
358 | 358 | } | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | func getNeededMaterials (total) = { | |
362 | 362 | let props = split(value(getString(keyResProportions())), "_") | |
363 | 363 | if ((size(props) != NUMRES)) | |
364 | 364 | then throw("Wrong proportions data") | |
365 | 365 | else { | |
366 | 366 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
367 | 367 | distributeByWeights(total, r) | |
368 | 368 | } | |
369 | 369 | } | |
370 | 370 | ||
371 | 371 | ||
372 | 372 | func subtractMaterials (shouldUseMat,has,totalNeed) = { | |
373 | 373 | let need = getNeededMaterials(totalNeed) | |
374 | 374 | func subtractor (acc,idx) = { | |
375 | 375 | let result = (parseIntValue(has[idx]) - need[idx]) | |
376 | 376 | if ((0 > result)) | |
377 | 377 | then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx]))) | |
378 | 378 | else (acc :+ toString(result)) | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | if (shouldUseMat) | |
382 | 382 | then { | |
383 | 383 | let $l = [0, 1, 2, 3, 4, 5] | |
384 | 384 | let $s = size($l) | |
385 | 385 | let $acc0 = nil | |
386 | 386 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
387 | 387 | then $a | |
388 | 388 | else subtractor($a, $l[$i]) | |
389 | 389 | ||
390 | 390 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
391 | 391 | then $a | |
392 | 392 | else throw("List size exceeds 6") | |
393 | 393 | ||
394 | 394 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
395 | 395 | } | |
396 | 396 | else has | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
401 | 401 | then throw("Wrong proportions data") | |
402 | 402 | else { | |
403 | 403 | func updater (acc,i) = { | |
404 | 404 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
405 | 405 | if ((0 > result)) | |
406 | 406 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
407 | 407 | else (acc :+ toString(result)) | |
408 | 408 | } | |
409 | 409 | ||
410 | 410 | let r = { | |
411 | 411 | let $l = [0, 1, 2, 3, 4, 5] | |
412 | 412 | let $s = size($l) | |
413 | 413 | let $acc0 = nil | |
414 | 414 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
415 | 415 | then $a | |
416 | 416 | else updater($a, $l[$i]) | |
417 | 417 | ||
418 | 418 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
419 | 419 | then $a | |
420 | 420 | else throw("List size exceeds 6") | |
421 | 421 | ||
422 | 422 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
423 | 423 | } | |
424 | 424 | makeString(r, "_") | |
425 | 425 | } | |
426 | 426 | ||
427 | 427 | ||
428 | 428 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
429 | 429 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
430 | 430 | updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign) | |
431 | 431 | } | |
432 | 432 | ||
433 | 433 | ||
434 | 434 | func countTerrains (terrains) = [(size(split(terrains, "A")) - 1), (size(split(terrains, "B")) - 1), (size(split(terrains, "C")) - 1), (size(split(terrains, "D")) - 1), (size(split(terrains, "E")) - 1), (size(split(terrains, "F")) - 1)] | |
435 | 435 | ||
436 | 436 | ||
437 | 437 | func numPiecesBySize (landSize) = match landSize { | |
438 | 438 | case _ => | |
439 | 439 | if (("S" == $match0)) | |
440 | 440 | then SSIZE | |
441 | 441 | else if (("M" == $match0)) | |
442 | 442 | then MSIZE | |
443 | 443 | else if (("L" == $match0)) | |
444 | 444 | then LSIZE | |
445 | 445 | else if (("XL" == $match0)) | |
446 | 446 | then XLSIZE | |
447 | 447 | else if (("XXL" == $match0)) | |
448 | 448 | then XXLSIZE | |
449 | 449 | else throw("Unknown land size") | |
450 | 450 | } | |
451 | 451 | ||
452 | 452 | ||
453 | 453 | func subOneInList (aList,idx,amount) = { | |
454 | 454 | func subber (acc,i) = (acc :+ (if ((i == idx)) | |
455 | 455 | then toString((parseIntValue(aList[i]) - amount)) | |
456 | 456 | else aList[i])) | |
457 | 457 | ||
458 | 458 | let r = { | |
459 | 459 | let $l = [0, 1, 2, 3, 4, 5] | |
460 | 460 | let $s = size($l) | |
461 | 461 | let $acc0 = nil | |
462 | 462 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
463 | 463 | then $a | |
464 | 464 | else subber($a, $l[$i]) | |
465 | 465 | ||
466 | 466 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
467 | 467 | then $a | |
468 | 468 | else throw("List size exceeds 6") | |
469 | 469 | ||
470 | 470 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
471 | 471 | } | |
472 | 472 | makeString(r, "_") | |
473 | 473 | } | |
474 | 474 | ||
475 | 475 | ||
476 | 476 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
477 | 477 | func adder (acc,i) = { | |
478 | 478 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
479 | 479 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
480 | 480 | } | |
481 | 481 | ||
482 | 482 | let r = { | |
483 | 483 | let $l = [0, 1, 2, 3, 4, 5] | |
484 | 484 | let $s = size($l) | |
485 | 485 | let $acc0 = nil | |
486 | 486 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
487 | 487 | then $a | |
488 | 488 | else adder($a, $l[$i]) | |
489 | 489 | ||
490 | 490 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
491 | 491 | then $a | |
492 | 492 | else throw("List size exceeds 6") | |
493 | 493 | ||
494 | 494 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
495 | 495 | } | |
496 | 496 | makeString(r, "_") | |
497 | 497 | } | |
498 | 498 | ||
499 | 499 | ||
500 | 500 | func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
501 | 501 | func adder (acc,i) = { | |
502 | 502 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
503 | 503 | $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType)) | |
504 | 504 | } | |
505 | 505 | ||
506 | 506 | let $l = [0, 1, 2, 3, 4, 5] | |
507 | 507 | let $s = size($l) | |
508 | 508 | let $acc0 = $Tuple2(nil, 0) | |
509 | 509 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
510 | 510 | then $a | |
511 | 511 | else adder($a, $l[$i]) | |
512 | 512 | ||
513 | 513 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
514 | 514 | then $a | |
515 | 515 | else throw("List size exceeds 6") | |
516 | 516 | ||
517 | 517 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
518 | 518 | } | |
519 | 519 | ||
520 | 520 | ||
521 | 521 | func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = { | |
522 | 522 | let resListToClaim = resToClaim._1 | |
523 | 523 | let resAmToClaim = resToClaim._2 | |
524 | 524 | if ((resAmToClaim == 0)) | |
525 | 525 | then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_")) | |
526 | 526 | else if ((whSpaceLeft >= resAmToClaim)) | |
527 | 527 | then { | |
528 | 528 | func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i]))) | |
529 | 529 | ||
530 | 530 | let r = { | |
531 | 531 | let $l = [0, 1, 2, 3, 4, 5] | |
532 | 532 | let $s = size($l) | |
533 | 533 | let $acc0 = nil | |
534 | 534 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
535 | 535 | then $a | |
536 | 536 | else addLists($a, $l[$i]) | |
537 | 537 | ||
538 | 538 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
539 | 539 | then $a | |
540 | 540 | else throw("List size exceeds 6") | |
541 | 541 | ||
542 | 542 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
543 | 543 | } | |
544 | 544 | $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_")) | |
545 | 545 | } | |
546 | 546 | else { | |
547 | 547 | func addPartLists (acc,i) = { | |
548 | 548 | let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim) | |
549 | 549 | $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart)))) | |
550 | 550 | } | |
551 | 551 | ||
552 | 552 | let r = { | |
553 | 553 | let $l = [0, 1, 2, 3, 4, 5] | |
554 | 554 | let $s = size($l) | |
555 | 555 | let $acc0 = $Tuple2(nil, nil) | |
556 | 556 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
557 | 557 | then $a | |
558 | 558 | else addPartLists($a, $l[$i]) | |
559 | 559 | ||
560 | 560 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
561 | 561 | then $a | |
562 | 562 | else throw("List size exceeds 6") | |
563 | 563 | ||
564 | 564 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
565 | 565 | } | |
566 | 566 | $Tuple2(makeString(r._1, "_"), makeString(r._2, "_")) | |
567 | 567 | } | |
568 | 568 | } | |
569 | 569 | ||
570 | 570 | ||
571 | 571 | func abs (x) = if ((x >= toBigInt(0))) | |
572 | 572 | then x | |
573 | 573 | else -(x) | |
574 | 574 | ||
575 | 575 | ||
576 | 576 | let freq = [[1, 4, 9, 10, 15], [5, 8, 13, 14, 15], [6, 9, 14, 15, 16], [4, 7, 8, 13, 18], [1, 6, 7, 15, 19]] | |
577 | 577 | ||
578 | 578 | func genChar (n,freqs) = { | |
579 | 579 | let rem = toInt((n % TWENTYX)) | |
580 | 580 | let letter = if ((freqs[0] > rem)) | |
581 | 581 | then "A" | |
582 | 582 | else if ((freqs[1] > rem)) | |
583 | 583 | then "B" | |
584 | 584 | else if ((freqs[2] > rem)) | |
585 | 585 | then "C" | |
586 | 586 | else if ((freqs[3] > rem)) | |
587 | 587 | then "D" | |
588 | 588 | else if ((freqs[4] > rem)) | |
589 | 589 | then "E" | |
590 | 590 | else "F" | |
591 | 591 | letter | |
592 | 592 | } | |
593 | 593 | ||
594 | 594 | ||
595 | 595 | func genTerrains (seed,continentIdx) = { | |
596 | 596 | let f = freq[continentIdx] | |
597 | 597 | func terrainGenerator (acc,elem) = $Tuple2((((((acc._1 + genChar(acc._2, f)) + genChar((acc._2 / TWENTYX), f)) + genChar((acc._2 / TWENTY2X), f)) + genChar((acc._2 / TWENTY3X), f)) + genChar((acc._2 / TWENTY4X), f)), (acc._2 / TWENTY5X)) | |
598 | 598 | ||
599 | 599 | let t = { | |
600 | 600 | let $l = [1, 2, 3, 4, 5] | |
601 | 601 | let $s = size($l) | |
602 | 602 | let $acc0 = $Tuple2("", (seed / FIVEX)) | |
603 | 603 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
604 | 604 | then $a | |
605 | 605 | else terrainGenerator($a, $l[$i]) | |
606 | 606 | ||
607 | 607 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
608 | 608 | then $a | |
609 | 609 | else throw("List size exceeds 5") | |
610 | 610 | ||
611 | 611 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
612 | 612 | } | |
613 | 613 | t._1 | |
614 | 614 | } | |
615 | 615 | ||
616 | 616 | ||
617 | 617 | func getBackpack (bpKey) = { | |
618 | 618 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
619 | 619 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
620 | 620 | then p[bpIdxRes] | |
621 | 621 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
622 | 622 | then p[bpIdxMat] | |
623 | 623 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
624 | 624 | } | |
625 | 625 | ||
626 | 626 | ||
627 | 627 | func getWarehouseVolume (volPrefix) = { | |
628 | 628 | let parts = split(volPrefix, "_") | |
629 | 629 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
630 | 630 | } | |
631 | 631 | ||
632 | 632 | ||
633 | 633 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
634 | 634 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
635 | 635 | let p = split(valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")), ":") | |
636 | 636 | [p[whIdxVol], if ((size(split(p[whIdxRes], "_")) == NUMRES)) | |
637 | 637 | then p[whIdxRes] | |
638 | 638 | else "0_0_0_0_0_0", if ((size(split(p[whIdxMat], "_")) == NUMRES)) | |
639 | 639 | then p[whIdxMat] | |
640 | 640 | else "0_0_0_0_0_0", p[whIdxProd], if ((5 > size(p))) | |
641 | 641 | then "0" | |
642 | 642 | else p[whIdxLockedVol]] | |
643 | 643 | } | |
644 | 644 | ||
645 | 645 | ||
646 | 646 | func getWarehouseCurrResVolume (currentWh) = { | |
647 | 647 | func sum (acc,item) = (acc + parseIntValue(item)) | |
648 | 648 | ||
649 | 649 | let $l = split(currentWh[whIdxRes], "_") | |
650 | 650 | let $s = size($l) | |
651 | 651 | let $acc0 = 0 | |
652 | 652 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
653 | 653 | then $a | |
654 | 654 | else sum($a, $l[$i]) | |
655 | 655 | ||
656 | 656 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
657 | 657 | then $a | |
658 | 658 | else throw("List size exceeds 6") | |
659 | 659 | ||
660 | 660 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
661 | 661 | } | |
662 | 662 | ||
663 | 663 | ||
664 | 664 | func getWarehouseCurrMatVolume (currentWh) = { | |
665 | 665 | func sum (acc,item) = (acc + parseIntValue(item)) | |
666 | 666 | ||
667 | 667 | let $l = split(currentWh[whIdxMat], "_") | |
668 | 668 | let $s = size($l) | |
669 | 669 | let $acc0 = 0 | |
670 | 670 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
671 | 671 | then $a | |
672 | 672 | else sum($a, $l[$i]) | |
673 | 673 | ||
674 | 674 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
675 | 675 | then $a | |
676 | 676 | else throw("List size exceeds 6") | |
677 | 677 | ||
678 | 678 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
679 | 679 | } | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | func getWarehouseCurrGoodsVolume (currentWh) = { | |
683 | 683 | let goods = currentWh[whIdxProd] | |
684 | 684 | if ((goods == "")) | |
685 | 685 | then 0 | |
686 | 686 | else { | |
687 | 687 | func sum (acc,item) = (acc + parseIntValue(item)) | |
688 | 688 | ||
689 | 689 | let $l = split_4C(goods, "_") | |
690 | 690 | let $s = size($l) | |
691 | 691 | let $acc0 = 0 | |
692 | 692 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
693 | 693 | then $a | |
694 | 694 | else sum($a, $l[$i]) | |
695 | 695 | ||
696 | 696 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
697 | 697 | then $a | |
698 | 698 | else throw("List size exceeds 50") | |
699 | 699 | ||
700 | 700 | $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) | |
701 | 701 | } | |
702 | 702 | } | |
703 | 703 | ||
704 | 704 | ||
705 | 705 | func moveStuff (cargoParts,currentWh,currentPack) = if ((size(cargoParts) != 3)) | |
706 | 706 | then throw("cargoListStr should contain exactly 2 ':' separators") | |
707 | 707 | else { | |
708 | 708 | let resParts = split(cargoParts[0], "_") | |
709 | 709 | let matParts = split(cargoParts[1], "_") | |
710 | 710 | let prodParts = if ((cargoParts[2] == "")) | |
711 | 711 | then nil | |
712 | 712 | else split(cargoParts[2], "_") | |
713 | 713 | if ((size(resParts) != NUMRES)) | |
714 | 714 | then throw("All 6 resources should be passed") | |
715 | 715 | else if ((size(matParts) != NUMRES)) | |
716 | 716 | then throw("All 6 materials should be passed") | |
717 | 717 | else { | |
718 | 718 | let currWhResVol = getWarehouseCurrResVolume(currentWh) | |
719 | 719 | let currWhMatVol = getWarehouseCurrMatVolume(currentWh) | |
720 | 720 | let currWhGoodsVol = getWarehouseCurrGoodsVolume(currentWh) | |
721 | 721 | let currWhLockedVol = parseIntValue(currentWh[whIdxLockedVol]) | |
722 | 722 | let whSpaceLeft = ((((getWarehouseVolume(currentWh[whIdxVol]) - currWhResVol) - currWhMatVol) - currWhGoodsVol) - currWhLockedVol) | |
723 | 723 | let currWhRes = split(currentWh[whIdxRes], "_") | |
724 | 724 | let currWhMat = split(currentWh[whIdxMat], "_") | |
725 | 725 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
726 | 726 | then nil | |
727 | 727 | else split(currentWh[whIdxProd], "_") | |
728 | 728 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
729 | 729 | let currentPackMat = split(currentPack[bpIdxMat], "_") | |
730 | 730 | let currentPackProd = if ((currentPack[bpIdxProd] == "")) | |
731 | 731 | then nil | |
732 | 732 | else split(currentPack[bpIdxProd], "_") | |
733 | 733 | func mvR (acc,item) = { | |
734 | 734 | let i = acc._1 | |
735 | 735 | let am = parseIntValue(item) | |
736 | 736 | let whr = parseIntValue(currWhRes[i]) | |
737 | 737 | let bpr = parseIntValue(currentPackRes[i]) | |
738 | 738 | if ((am == 0)) | |
739 | 739 | then $Tuple4((i + 1), (acc._2 :+ currWhRes[i]), (acc._3 :+ currentPackRes[i]), acc._4) | |
740 | 740 | else if ((am > 0)) | |
741 | 741 | then if ((am > bpr)) | |
742 | 742 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpr)) + " available")) | |
743 | 743 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
744 | 744 | else if ((-(am) > whr)) | |
745 | 745 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whr)) + " available")) | |
746 | 746 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
747 | 747 | } | |
748 | 748 | ||
749 | 749 | let r = { | |
750 | 750 | let $l = resParts | |
751 | 751 | let $s = size($l) | |
752 | 752 | let $acc0 = $Tuple4(0, nil, nil, 0) | |
753 | 753 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
754 | 754 | then $a | |
755 | 755 | else mvR($a, $l[$i]) | |
756 | 756 | ||
757 | 757 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
758 | 758 | then $a | |
759 | 759 | else throw("List size exceeds 6") | |
760 | 760 | ||
761 | 761 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
762 | 762 | } | |
763 | 763 | func mvM (acc,item) = { | |
764 | 764 | let i = acc._1 | |
765 | 765 | let am = parseIntValue(item) | |
766 | 766 | let whm = parseIntValue(currWhMat[i]) | |
767 | 767 | let bpm = parseIntValue(currentPackMat[i]) | |
768 | 768 | if ((am == 0)) | |
769 | 769 | then $Tuple4((i + 1), (acc._2 :+ currWhMat[i]), (acc._3 :+ currentPackMat[i]), acc._4) | |
770 | 770 | else if ((am > 0)) | |
771 | 771 | then if ((am > bpm)) | |
772 | 772 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpm)) + " available")) | |
773 | 773 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
774 | 774 | else if ((-(am) > whm)) | |
775 | 775 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whm)) + " available")) | |
776 | 776 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
777 | 777 | } | |
778 | 778 | ||
779 | 779 | let m = { | |
780 | 780 | let $l = matParts | |
781 | 781 | let $s = size($l) | |
782 | 782 | let $acc0 = $Tuple4(0, nil, nil, r._4) | |
783 | 783 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
784 | 784 | then $a | |
785 | 785 | else mvM($a, $l[$i]) | |
786 | 786 | ||
787 | 787 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
788 | 788 | then $a | |
789 | 789 | else throw("List size exceeds 6") | |
790 | 790 | ||
791 | 791 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
792 | 792 | } | |
793 | 793 | func mvP (acc,item) = { | |
794 | 794 | let i = acc._1 | |
795 | 795 | let am = parseIntValue(item) | |
796 | 796 | let whp = parseIntValue(currWhProd[i]) | |
797 | 797 | let bpp = parseIntValue(currentPackProd[i]) | |
798 | 798 | if ((am == 0)) | |
799 | 799 | then $Tuple4((i + 1), (acc._2 :+ currWhProd[i]), (acc._3 :+ currentPackProd[i]), acc._4) | |
800 | 800 | else if ((am > 0)) | |
801 | 801 | then if ((am > bpp)) | |
802 | 802 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available")) | |
803 | 803 | else $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + am)) | |
804 | 804 | else if ((-(am) > whp)) | |
805 | 805 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available")) | |
806 | 806 | else $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + am)) | |
807 | 807 | } | |
808 | 808 | ||
809 | - | let p = { | |
810 | - | let $l = prodParts | |
811 | - | let $s = size($l) | |
812 | - | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
813 | - | func $f2_1 ($a,$i) = if (($i >= $s)) | |
814 | - | then $a | |
815 | - | else mvP($a, $l[$i]) | |
809 | + | let p = if ((size(prodParts) != 0)) | |
810 | + | then { | |
811 | + | let $l = prodParts | |
812 | + | let $s = size($l) | |
813 | + | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
814 | + | func $f2_1 ($a,$i) = if (($i >= $s)) | |
815 | + | then $a | |
816 | + | else mvP($a, $l[$i]) | |
816 | 817 | ||
817 | - | func $f2_2 ($a,$i) = if (($i >= $s)) | |
818 | - | then $a | |
819 | - | else throw("List size exceeds 50") | |
818 | + | func $f2_2 ($a,$i) = if (($i >= $s)) | |
819 | + | then $a | |
820 | + | else throw("List size exceeds 50") | |
820 | 821 | ||
821 | - | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_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) | |
822 | - | } | |
822 | + | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_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) | |
823 | + | } | |
824 | + | else $Tuple4(0, currWhProd, currentPackProd, m._4) | |
823 | 825 | let volSaldo = p._4 | |
824 | 826 | if ((volSaldo > whSpaceLeft)) | |
825 | 827 | then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left")) | |
826 | 828 | else $Tuple6(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_")) | |
827 | 829 | } | |
828 | 830 | } | |
829 | 831 | ||
830 | 832 | ||
831 | 833 | func expeditionInternal (caller,txId) = { | |
832 | 834 | let userAddr = toString(caller) | |
833 | 835 | let bigNum = abs(toBigInt(txId)) | |
834 | 836 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
835 | 837 | let landNum = toString(freeNum) | |
836 | 838 | let continentIdx = toInt((bigNum % FIVEX)) | |
837 | 839 | let terrains = genTerrains(bigNum, continentIdx) | |
838 | 840 | let continent = continents[continentIdx] | |
839 | 841 | let issue = Issue(keyNftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false) | |
840 | 842 | let assetId = calculateAssetId(issue) | |
841 | 843 | let id = toBase58String(assetId) | |
842 | 844 | $Tuple2([IntegerEntry(keyNextFreeLandNum(), (freeNum + 1)), issue, StringEntry(keyLandToAssetId(landNum), id), StringEntry(keyLandAssetIdToOwner(id), userAddr), StringEntry(keyLandNumToOwner(landNum), userAddr), IntegerEntry(keyInfraLevelByAssetId(id), 0), IntegerEntry(keyInfraLevelByAssetIdAndOwner(id, userAddr), 0), ScriptTransfer(caller, 1, assetId)], $Tuple2(id, continent)) | |
843 | 845 | } | |
844 | 846 | ||
845 | 847 | ||
846 | 848 | func expeditionCommon (shouldUseMat,caller,txId,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
847 | 849 | then throw("signature does not match") | |
848 | 850 | else { | |
849 | 851 | let parts = split(toUtf8String(message), ";") | |
850 | 852 | let hp = split(split(parts[0], "|")[0], "_") | |
851 | 853 | let curHP = parseIntValue(hp[0]) | |
852 | 854 | let newHP = parseIntValue(hp[1]) | |
853 | 855 | let locAndTime = split(parts[1], ":") | |
854 | 856 | let targetLocation = split(locAndTime[0], "_") | |
855 | 857 | if ((targetLocation[1] != "E")) | |
856 | 858 | then throw("expedition target location type should be E") | |
857 | 859 | else { | |
858 | 860 | let time = parseIntValue(locAndTime[1]) | |
859 | 861 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
860 | 862 | then true | |
861 | 863 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
862 | 864 | then throw("signature outdated") | |
863 | 865 | else { | |
864 | 866 | let userAddr = toString(caller) | |
865 | 867 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
866 | 868 | let keyHealth = keyDuckHealth(duckAssetId) | |
867 | 869 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
868 | 870 | if ((oldFromState != curHP)) | |
869 | 871 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
870 | 872 | else if ((0 >= curHP)) | |
871 | 873 | then throw("You can't fly with zero health") | |
872 | 874 | else if ((0 >= newHP)) | |
873 | 875 | then $Tuple2(((if (!(shouldUseMat)) | |
874 | 876 | then [ScriptTransfer(caller, EXPUSDT, usdtAssetId)] | |
875 | 877 | else nil) :+ IntegerEntry(keyHealth, 0)), "") | |
876 | 878 | else { | |
877 | 879 | let bpKey = keyBackpackByDuck(duckAssetId) | |
878 | 880 | let currentPack = getBackpack(bpKey) | |
879 | 881 | let mList = split(currentPack[bpIdxMat], "_") | |
880 | 882 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, EXPMATERIALS), "_") | |
881 | 883 | let e = expeditionInternal(caller, txId) | |
882 | 884 | let id = e._2._1 | |
883 | 885 | $Tuple2((((e._1 :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, newHP)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))), id) | |
884 | 886 | } | |
885 | 887 | } | |
886 | 888 | } | |
887 | 889 | } | |
888 | 890 | ||
889 | 891 | ||
890 | 892 | func applyBonuses (landAssetId,pieces) = { | |
891 | 893 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
892 | 894 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
893 | 895 | then pieces | |
894 | 896 | else 0) | |
895 | 897 | let add6 = (infraLevel / 6) | |
896 | 898 | let add7 = (infraLevel / 7) | |
897 | 899 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))) | |
898 | 900 | } | |
899 | 901 | ||
900 | 902 | ||
901 | 903 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
902 | - | let $ | |
904 | + | let $t02503425573 = if ((claimMode == claimModeWh)) | |
903 | 905 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
904 | 906 | else { | |
905 | 907 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
906 | 908 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
907 | 909 | let loc = split(value(curLocation), "_") | |
908 | 910 | if ((loc[locIdxType] != "L")) | |
909 | 911 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
910 | 912 | else $Tuple2(loc[locIdxId], duckAssetId) | |
911 | 913 | } | |
912 | - | let landAssetId = $ | |
913 | - | let duckId = $ | |
914 | + | let landAssetId = $t02503425573._1 | |
915 | + | let duckId = $t02503425573._2 | |
914 | 916 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
915 | 917 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
916 | 918 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
917 | 919 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
918 | 920 | if ((owner != addr)) | |
919 | 921 | then throw((LANDPREFIX + " is not yours")) | |
920 | 922 | else { | |
921 | 923 | let d = split(asset.description, "_") | |
922 | 924 | $Tuple4(duckId, landAssetId, d, savedTime) | |
923 | 925 | } | |
924 | 926 | } | |
925 | 927 | ||
926 | 928 | ||
927 | 929 | func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount)) | |
928 | 930 | then throw("Negative amount") | |
929 | 931 | else { | |
930 | 932 | let c = checkClaimConditions(addr, claimMode, landAssetIdIn) | |
931 | 933 | let landSize = c._3[recLandSize] | |
932 | 934 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
933 | 935 | let deltaTime = (lastBlock.timestamp - c._4) | |
934 | 936 | if ((0 > deltaTime)) | |
935 | 937 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
936 | 938 | else { | |
937 | 939 | let pieces = numPiecesBySize(landSize) | |
938 | 940 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
939 | 941 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
940 | 942 | if ((amount > availRes)) | |
941 | 943 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
942 | 944 | else { | |
943 | 945 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
944 | 946 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
945 | 947 | let landIndex = (pieces / SSIZE) | |
946 | 948 | let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece) | |
947 | 949 | let whKey = keyWarehouseByLand(c._2) | |
948 | 950 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0) | |
949 | 951 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
950 | 952 | let currWhResVol = getWarehouseCurrResVolume(currentWh) | |
951 | 953 | let currWhMatVol = getWarehouseCurrMatVolume(currentWh) | |
952 | 954 | let currWhGoodsVol = getWarehouseCurrGoodsVolume(currentWh) | |
953 | 955 | let currWhLockedVol = parseIntValue(currentWh[whIdxLockedVol]) | |
954 | 956 | let whSpaceLeft = ((((getWarehouseVolume(currentWh[whIdxVol]) - currWhResVol) - currWhMatVol) - currWhGoodsVol) - currWhLockedVol) | |
955 | 957 | if (if ((claimMode == claimModeWh)) | |
956 | 958 | then (amount > whSpaceLeft) | |
957 | 959 | else false) | |
958 | 960 | then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse")) | |
959 | 961 | else { | |
960 | 962 | let bpKey = keyBackpackByDuck(c._1) | |
961 | 963 | let currentPack = getBackpack(bpKey) | |
962 | 964 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
963 | 965 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
964 | - | let $ | |
966 | + | let $t02822128724 = if ((claimMode == claimModeWh)) | |
965 | 967 | then $Tuple2(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes]) | |
966 | 968 | else if ((claimMode == claimModeDuck)) | |
967 | 969 | then $Tuple2(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece)) | |
968 | 970 | else distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
969 | - | let whRes = $ | |
970 | - | let bpRes = $ | |
971 | + | let whRes = $t02822128724._1 | |
972 | + | let bpRes = $t02822128724._2 | |
971 | 973 | $Tuple5([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]], whKey, [currentWh[whIdxVol], whRes, currentWh[whIdxMat], currentWh[whIdxProd], currentWh[whIdxLockedVol]]) | |
972 | 974 | } | |
973 | 975 | } | |
974 | 976 | } | |
975 | 977 | } | |
976 | 978 | ||
977 | 979 | ||
978 | 980 | func claimAll (addr,landAssetId,pieces,claimMode) = { | |
979 | 981 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
980 | 982 | let savedTime = value(getInteger(timeKey)) | |
981 | 983 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
982 | 984 | claimResInternal(addr, availRes, claimMode, landAssetId) | |
983 | 985 | } | |
984 | 986 | ||
985 | 987 | ||
986 | 988 | func upInfraCommon (shouldUseMat,caller,paymentAmount,landAssetId) = { | |
987 | 989 | let addr = toString(caller) | |
988 | 990 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetId) | |
989 | 991 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
990 | 992 | let infraKey = keyInfraLevelByAssetId(c._2) | |
991 | 993 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
992 | 994 | if ((curLevel >= 3)) | |
993 | 995 | then throw("Currently max infrastructure level = 3") | |
994 | 996 | else { | |
995 | 997 | let newLevel = (curLevel + 1) | |
996 | 998 | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
997 | 999 | if (if (!(shouldUseMat)) | |
998 | 1000 | then (paymentAmount != cost) | |
999 | 1001 | else false) | |
1000 | 1002 | then throw(("Payment attached should be " + toString(cost))) | |
1001 | 1003 | else { | |
1002 | 1004 | let bpKey = keyBackpackByDuck(c._1) | |
1003 | 1005 | let currentPack = getBackpack(bpKey) | |
1004 | 1006 | let mList = split(currentPack[bpIdxMat], "_") | |
1005 | 1007 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE)), "_") | |
1006 | 1008 | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1007 | 1009 | let whData = claimResult._5 | |
1008 | 1010 | let newVolData = makeString([split(whData[whIdxVol], "_")[0], toString(newLevel)], "_") | |
1009 | 1011 | $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), StringEntry(claimResult._4, makeString([newVolData, whData[whIdxRes], whData[whIdxMat], whData[whIdxProd], whData[whIdxLockedVol]], ":"))] ++ claimResult._1), newLevel) | |
1010 | 1012 | } | |
1011 | 1013 | } | |
1012 | 1014 | } | |
1013 | 1015 | ||
1014 | 1016 | ||
1015 | 1017 | func activateOnboardArt (addr) = 0 | |
1016 | 1018 | ||
1017 | 1019 | ||
1018 | 1020 | func activatePresaleArt (addr,landAssetIdIn) = { | |
1019 | 1021 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn) | |
1020 | 1022 | let landAssetId = c._2 | |
1021 | 1023 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1022 | 1024 | let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1023 | 1025 | if ((valueOrElse(getInteger(activationKey), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
1024 | 1026 | then pieces | |
1025 | 1027 | else 0) > 0)) | |
1026 | 1028 | then throw("Presale artifact is already activated") | |
1027 | 1029 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
1028 | 1030 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
1029 | 1031 | else { | |
1030 | 1032 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck) | |
1031 | 1033 | ((((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":"))) | |
1032 | 1034 | } | |
1033 | 1035 | } | |
1034 | 1036 | ||
1035 | 1037 | ||
1036 | 1038 | func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,txId,needMat) = { | |
1037 | 1039 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1038 | 1040 | func checkMerge (acc,landAssetId) = { | |
1039 | 1041 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1040 | 1042 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1041 | 1043 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
1042 | 1044 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1043 | 1045 | if ((owner != addr)) | |
1044 | 1046 | then throw((LANDPREFIX + " is not yours")) | |
1045 | 1047 | else { | |
1046 | 1048 | let d = split(asset.description, "_") | |
1047 | 1049 | let continent = d[recContinent] | |
1048 | 1050 | if (if ((acc._3 != "")) | |
1049 | 1051 | then (acc._3 != continent) | |
1050 | 1052 | else false) | |
1051 | 1053 | then throw("Lands should be on the same continent to merge") | |
1052 | 1054 | else { | |
1053 | 1055 | let landSize = d[recLandSize] | |
1054 | 1056 | let sizesIn = acc._1 | |
1055 | 1057 | let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed") | |
1056 | 1058 | let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1))) | |
1057 | 1059 | let pieces = numPiecesBySize(landSize) | |
1058 | 1060 | let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
1059 | 1061 | then pieces | |
1060 | 1062 | else 0)) | |
1061 | 1063 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1062 | 1064 | let reqLevel = match landSize { | |
1063 | 1065 | case _ => | |
1064 | 1066 | if (("S" == $match0)) | |
1065 | 1067 | then 3 | |
1066 | 1068 | else if (("M" == $match0)) | |
1067 | 1069 | then 4 | |
1068 | 1070 | else if (("L" == $match0)) | |
1069 | 1071 | then 5 | |
1070 | 1072 | else if (("XL" == $match0)) | |
1071 | 1073 | then 6 | |
1072 | 1074 | else throw("Only S, M, L, XL can merge") | |
1073 | 1075 | } | |
1074 | 1076 | if ((infraLevel != reqLevel)) | |
1075 | 1077 | then throw("All lands should be maxed to merge") | |
1076 | 1078 | else { | |
1077 | 1079 | let landNum = d[recLandNum] | |
1078 | 1080 | let terrainCounts = countTerrains(d[recTerrains]) | |
1079 | 1081 | let deltaTime = (lastBlock.timestamp - savedTime) | |
1080 | 1082 | if ((0 > deltaTime)) | |
1081 | 1083 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp))) | |
1082 | 1084 | else { | |
1083 | 1085 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
1084 | 1086 | let landIndex = (pieces / SSIZE) | |
1085 | 1087 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
1086 | 1088 | let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, landIndex, -1) | |
1087 | 1089 | let lands = acc._7 | |
1088 | 1090 | let idx = indexOf(lands, landAssetId) | |
1089 | 1091 | if (!(isDefined(idx))) | |
1090 | 1092 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1091 | 1093 | else { | |
1092 | 1094 | let customKey = keyLandAssetIdToCustomName(landAssetId) | |
1093 | 1095 | let customName = valueOrElse(getString(customKey), "") | |
1094 | 1096 | $Tuple7(sizesOut, arts, continent, bpRes, ((((((((((((((acc._5 :+ DeleteEntry(keyStakedTimeByAssetId(landAssetId))) :+ DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr))) :+ DeleteEntry(keyLandToAssetId(landNum))) :+ DeleteEntry(keyNftName(landNum, landSize))) :+ DeleteEntry(keyLandAssetIdToOwner(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetId(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ DeleteEntry(keyWarehouseByLand(landAssetId))) :+ DeleteEntry(customKey)) :+ DeleteEntry(keyLandCustomNameToAssetId(customName))) :+ Burn(fromBase58String(landAssetId), 1)), props, removeByIndex(lands, value(idx))) | |
1095 | 1097 | } | |
1096 | 1098 | } | |
1097 | 1099 | } | |
1098 | 1100 | } | |
1099 | 1101 | } | |
1100 | 1102 | } | |
1101 | 1103 | ||
1102 | 1104 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1103 | 1105 | let currentPack = getBackpack(bpKey) | |
1104 | 1106 | let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0") | |
1105 | 1107 | let landsKey = keyStakedLandsByOwner(addr) | |
1106 | 1108 | let landsStr = getString(landsKey) | |
1107 | 1109 | let landsIn = if (isDefined(landsStr)) | |
1108 | 1110 | then split_51C(value(landsStr), "_") | |
1109 | 1111 | else nil | |
1110 | 1112 | let r = { | |
1111 | 1113 | let $l = landAssetIds | |
1112 | 1114 | let $s = size($l) | |
1113 | 1115 | let $acc0 = $Tuple7(formula, 0, "", currentPack[bpIdxRes], nil, propStr, landsIn) | |
1114 | 1116 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1115 | 1117 | then $a | |
1116 | 1118 | else checkMerge($a, $l[$i]) | |
1117 | 1119 | ||
1118 | 1120 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1119 | 1121 | then $a | |
1120 | 1122 | else throw("List size exceeds 5") | |
1121 | 1123 | ||
1122 | 1124 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
1123 | 1125 | } | |
1124 | 1126 | let continent = r._3 | |
1125 | 1127 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
1126 | 1128 | let terrains = genTerrains(abs(toBigInt(txId)), continentIdx) | |
1127 | 1129 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1128 | 1130 | let newLandNum = toString(freeNum) | |
1129 | 1131 | let issue = Issue(keyNftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false) | |
1130 | 1132 | let assetId = calculateAssetId(issue) | |
1131 | 1133 | let newLandAssetId = toBase58String(assetId) | |
1132 | 1134 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
1133 | 1135 | $Tuple2(((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
1134 | 1136 | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
1135 | 1137 | else DeleteEntry(landsKey))) :+ IntegerEntry(keyNextFreeLandNum(), (freeNum + 1))) :+ issue) :+ StringEntry(keyLandToAssetId(newLandNum), newLandAssetId)) :+ StringEntry(keyLandAssetIdToOwner(newLandAssetId), addr)) :+ StringEntry(keyLandNumToOwner(newLandNum), addr)) :+ IntegerEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, newLandAssetId), r._2)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, newLandAssetId, addr), r._2)) :+ IntegerEntry(keyInfraLevelByAssetId(newLandAssetId), newLevel)) :+ IntegerEntry(keyInfraLevelByAssetIdAndOwner(newLandAssetId, addr), newLevel)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], r._4, newMat, currentPack[bpIdxProd]], ":"))) :+ StringEntry(keyResProportions(), r._6)) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId) | |
1136 | 1138 | } | |
1137 | 1139 | ||
1138 | 1140 | ||
1139 | 1141 | func s2m (addr,landAssetIds,txId) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, txId, 0) | |
1140 | 1142 | ||
1141 | 1143 | ||
1142 | 1144 | func m2l (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1143 | 1145 | let cost = (InfraUpgradeCostSUsdt * 4) | |
1144 | 1146 | if (if (!(shouldUseMat)) | |
1145 | 1147 | then (paymentAmount != cost) | |
1146 | 1148 | else false) | |
1147 | 1149 | then throw(("Payment attached should be " + toString(cost))) | |
1148 | 1150 | else mergeInternal("L", 4, "SMM", addr, landAssetIds, txId, (InfraUpgradeCostS * 4)) | |
1149 | 1151 | } | |
1150 | 1152 | ||
1151 | 1153 | ||
1152 | 1154 | func l2xl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1153 | 1155 | let cost = (InfraUpgradeCostSUsdt * 47) | |
1154 | 1156 | if (if (!(shouldUseMat)) | |
1155 | 1157 | then (paymentAmount != cost) | |
1156 | 1158 | else false) | |
1157 | 1159 | then throw(("Payment attached should be " + toString(cost))) | |
1158 | 1160 | else mergeInternal("XL", 5, "SSSML", addr, landAssetIds, txId, (InfraUpgradeCostS * 47)) | |
1159 | 1161 | } | |
1160 | 1162 | ||
1161 | 1163 | ||
1162 | 1164 | func xl2xxl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1163 | 1165 | let cost = (InfraUpgradeCostSUsdt * 54) | |
1164 | 1166 | if (if (!(shouldUseMat)) | |
1165 | 1167 | then (paymentAmount != cost) | |
1166 | 1168 | else false) | |
1167 | 1169 | then throw(("Payment attached should be " + toString(cost))) | |
1168 | 1170 | else mergeInternal("XXL", 6, "LXL", addr, landAssetIds, txId, (InfraUpgradeCostS * 54)) | |
1169 | 1171 | } | |
1170 | 1172 | ||
1171 | 1173 | ||
1172 | 1174 | func mergeCommon (shouldUseMat,addr,paymentAmount,landAssetIds,txId) = { | |
1173 | 1175 | let mergeResult = match size(landAssetIds) { | |
1174 | 1176 | case _ => | |
1175 | 1177 | if ((4 == $match0)) | |
1176 | 1178 | then s2m(addr, landAssetIds, txId) | |
1177 | 1179 | else if ((3 == $match0)) | |
1178 | 1180 | then m2l(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1179 | 1181 | else if ((5 == $match0)) | |
1180 | 1182 | then l2xl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1181 | 1183 | else if ((2 == $match0)) | |
1182 | 1184 | then xl2xxl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1183 | 1185 | else throw("Unknown merge") | |
1184 | 1186 | } | |
1185 | 1187 | mergeResult | |
1186 | 1188 | } | |
1187 | 1189 | ||
1188 | 1190 | ||
1189 | 1191 | func prolog (i) = if (if ((i.originCaller != restContract)) | |
1190 | 1192 | then valueOrElse(getBoolean(keyBlocked()), false) | |
1191 | 1193 | else false) | |
1192 | 1194 | then throw("Contracts are under maintenance") | |
1193 | 1195 | else StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId)) | |
1194 | 1196 | ||
1195 | 1197 | ||
1196 | 1198 | @Callable(i) | |
1197 | 1199 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
1198 | 1200 | then throw("Permission denied") | |
1199 | 1201 | else [StringEntry(keyRestAddress(), restAddr)] | |
1200 | 1202 | ||
1201 | 1203 | ||
1202 | 1204 | ||
1203 | 1205 | @Callable(i) | |
1204 | 1206 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
1205 | 1207 | then throw("permission denied") | |
1206 | 1208 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
1207 | 1209 | ||
1208 | 1210 | ||
1209 | 1211 | ||
1210 | 1212 | @Callable(i) | |
1211 | 1213 | func stakeLand () = { | |
1212 | 1214 | let prologAction = prolog(i) | |
1213 | 1215 | if ((size(i.payments) != 1)) | |
1214 | 1216 | then throw("Exactly one payment required") | |
1215 | 1217 | else { | |
1216 | 1218 | let pmt = value(i.payments[0]) | |
1217 | 1219 | let assetId = value(pmt.assetId) | |
1218 | 1220 | let address = toString(i.caller) | |
1219 | 1221 | if ((pmt.amount != 1)) | |
1220 | 1222 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
1221 | 1223 | else { | |
1222 | 1224 | let asset = value(assetInfo(assetId)) | |
1223 | 1225 | if ((asset.issuer != this)) | |
1224 | 1226 | then throw("Unknown issuer of token") | |
1225 | 1227 | else if (!(contains(asset.name, LANDPREFIX))) | |
1226 | 1228 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1227 | 1229 | else { | |
1228 | 1230 | let landNumSize = drop(asset.name, 4) | |
1229 | 1231 | let landNum = if (contains(landNumSize, "XXL")) | |
1230 | 1232 | then dropRight(landNumSize, 3) | |
1231 | 1233 | else if (contains(landNumSize, "XL")) | |
1232 | 1234 | then dropRight(landNumSize, 2) | |
1233 | 1235 | else dropRight(landNumSize, 1) | |
1234 | 1236 | if (!(isDefined(parseInt(landNum)))) | |
1235 | 1237 | then throw(("Cannot parse land number from " + asset.name)) | |
1236 | 1238 | else { | |
1237 | 1239 | let landAssetId = toBase58String(assetId) | |
1238 | 1240 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1239 | 1241 | if (isDefined(getInteger(timeKey))) | |
1240 | 1242 | then throw((("NFT " + asset.name) + " is already staked")) | |
1241 | 1243 | else { | |
1242 | 1244 | let d = split(asset.description, "_") | |
1243 | 1245 | let terrainCounts = countTerrains(d[recTerrains]) | |
1244 | 1246 | let pieces = numPiecesBySize(d[recLandSize]) | |
1245 | 1247 | let props = updateProportions(terrainCounts, (pieces / SSIZE), 1) | |
1246 | 1248 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
1247 | 1249 | then pieces | |
1248 | 1250 | else 0) | |
1249 | 1251 | let landsStr = getString(keyStakedLandsByOwner(address)) | |
1250 | 1252 | let lands = if (isDefined(landsStr)) | |
1251 | 1253 | then split_51C(value(landsStr), "_") | |
1252 | 1254 | else nil | |
1253 | 1255 | if (containsElement(lands, landAssetId)) | |
1254 | 1256 | then throw(("Your staked lands already contain " + landAssetId)) | |
1255 | 1257 | else [IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(keyStakedLandsByOwner(address), makeString_11C((lands :+ landAssetId), "_")), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), StringEntry(keyResProportions(), props), prologAction] | |
1256 | 1258 | } | |
1257 | 1259 | } | |
1258 | 1260 | } | |
1259 | 1261 | } | |
1260 | 1262 | } | |
1261 | 1263 | } | |
1262 | 1264 | ||
1263 | 1265 | ||
1264 | 1266 | ||
1265 | 1267 | @Callable(i) | |
1266 | 1268 | func unstakeLand (landAssetIdIn) = { | |
1267 | 1269 | let prologAction = prolog(i) | |
1268 | 1270 | if ((size(i.payments) != 0)) | |
1269 | 1271 | then throw("No payments required") | |
1270 | 1272 | else { | |
1271 | 1273 | let addr = toString(i.caller) | |
1272 | 1274 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
1273 | 1275 | let landAssetId = c._2 | |
1274 | 1276 | let landsKey = keyStakedLandsByOwner(addr) | |
1275 | 1277 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1276 | 1278 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1277 | 1279 | let props = updateProportions(terrainCounts, (pieces / SSIZE), -1) | |
1278 | 1280 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
1279 | 1281 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
1280 | 1282 | let idx = indexOf(lands, landAssetId) | |
1281 | 1283 | if (!(isDefined(idx))) | |
1282 | 1284 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1283 | 1285 | else { | |
1284 | 1286 | let t = value(blockInfoByHeight(height)).timestamp | |
1285 | 1287 | let releaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0) | |
1286 | 1288 | if ((releaseTime >= t)) | |
1287 | 1289 | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(releaseTime))) | |
1288 | 1290 | else [ScriptTransfer(i.caller, 1, fromBase58String(landAssetId)), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr)), StringEntry(keyResProportions(), props), StringEntry(claimResult._2, makeString(claimResult._3, ":")), if ((size(lands) > 1)) | |
1289 | 1291 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
1290 | 1292 | else DeleteEntry(landsKey), prologAction] | |
1291 | 1293 | } | |
1292 | 1294 | } | |
1293 | 1295 | } | |
1294 | 1296 | ||
1295 | 1297 | ||
1296 | 1298 | ||
1297 | 1299 | @Callable(i) | |
1298 | 1300 | func stakeDuck () = { | |
1299 | 1301 | let prologAction = prolog(i) | |
1300 | 1302 | if ((size(i.payments) != 1)) | |
1301 | 1303 | then throw("Exactly one payment required") | |
1302 | 1304 | else { | |
1303 | 1305 | let pmt = value(i.payments[0]) | |
1304 | 1306 | let assetId = value(pmt.assetId) | |
1305 | 1307 | let address = toString(i.caller) | |
1306 | 1308 | if ((pmt.amount != 1)) | |
1307 | 1309 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
1308 | 1310 | else { | |
1309 | 1311 | let asset = value(assetInfo(assetId)) | |
1310 | 1312 | if (if ((asset.issuer != incubatorAddr)) | |
1311 | 1313 | then (asset.issuer != breederAddr) | |
1312 | 1314 | else false) | |
1313 | 1315 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
1314 | 1316 | else if (!(contains(asset.name, DUCKPREFIX))) | |
1315 | 1317 | then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted")) | |
1316 | 1318 | else { | |
1317 | 1319 | let assetIdStr = toBase58String(assetId) | |
1318 | 1320 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
1319 | 1321 | if (isDefined(getInteger(timeKey))) | |
1320 | 1322 | then throw((("NFT " + asset.name) + " is already staked")) | |
1321 | 1323 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
1322 | 1324 | then throw(("You already staked one duck: " + asset.name)) | |
1323 | 1325 | else { | |
1324 | 1326 | let locKey = keyDuckLocation(assetIdStr) | |
1325 | 1327 | let location = getString(locKey) | |
1326 | 1328 | let bpKey = keyBackpackByDuck(assetIdStr) | |
1327 | 1329 | let backpack = getString(bpKey) | |
1328 | 1330 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
1329 | 1331 | then nil | |
1330 | 1332 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack)) | |
1331 | 1333 | then nil | |
1332 | 1334 | else (([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyDuckHealth(assetIdStr), 100)) :+ prologAction))))) | |
1333 | 1335 | } | |
1334 | 1336 | } | |
1335 | 1337 | } | |
1336 | 1338 | } | |
1337 | 1339 | } | |
1338 | 1340 | ||
1339 | 1341 | ||
1340 | 1342 | ||
1341 | 1343 | @Callable(i) | |
1342 | 1344 | func unstakeDuck (assetIdStr) = { | |
1343 | 1345 | let prologAction = prolog(i) | |
1344 | 1346 | if ((size(i.payments) != 0)) | |
1345 | 1347 | then throw("No payments required") | |
1346 | 1348 | else { | |
1347 | 1349 | let assetId = fromBase58String(assetIdStr) | |
1348 | 1350 | let address = toString(i.caller) | |
1349 | 1351 | let asset = value(assetInfo(assetId)) | |
1350 | 1352 | let timeKey = keyStakedTimeByAssetId(toBase58String(assetId)) | |
1351 | 1353 | if (!(isDefined(getInteger(timeKey)))) | |
1352 | 1354 | then throw((("NFT " + asset.name) + " is not staked")) | |
1353 | 1355 | else if (!(isDefined(getString(keyStakedDuckByOwner(address))))) | |
1354 | 1356 | then throw((("The duck " + asset.name) + " is not staked")) | |
1355 | 1357 | else { | |
1356 | 1358 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned")) | |
1357 | 1359 | if ((owner != address)) | |
1358 | 1360 | then throw("Staked NFT is not yours") | |
1359 | 1361 | else { | |
1360 | 1362 | let keyHealth = keyDuckHealth(assetIdStr) | |
1361 | 1363 | let health = valueOrElse(getInteger(keyHealth), 100) | |
1362 | 1364 | if ((100 > health)) | |
1363 | 1365 | then throw("Please heal your duck before unstaking") | |
1364 | 1366 | else [ScriptTransfer(i.caller, 1, assetId), DeleteEntry(timeKey), DeleteEntry(keyHealth), DeleteEntry(keyDuckLocation(assetIdStr)), DeleteEntry(keyDuckIdToOwner(assetIdStr)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, assetIdStr, address)), DeleteEntry(keyStakedDuckByOwner(address)), prologAction] | |
1365 | 1367 | } | |
1366 | 1368 | } | |
1367 | 1369 | } | |
1368 | 1370 | } | |
1369 | 1371 | ||
1370 | 1372 | ||
1371 | 1373 | ||
1372 | 1374 | @Callable(i) | |
1373 | 1375 | func claimRes (amount,landAssetIdStr) = { | |
1374 | 1376 | let prologAction = prolog(i) | |
1375 | 1377 | if ((size(i.payments) != 0)) | |
1376 | 1378 | then throw("No payments required") | |
1377 | 1379 | else { | |
1378 | 1380 | let addr = toString(i.originCaller) | |
1379 | 1381 | let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr) | |
1380 | 1382 | $Tuple2((((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._3[bpIdxRes]) | |
1381 | 1383 | } | |
1382 | 1384 | } | |
1383 | 1385 | ||
1384 | 1386 | ||
1385 | 1387 | ||
1386 | 1388 | @Callable(i) | |
1387 | 1389 | func claimResToWH (amount,landAssetIdStr) = { | |
1388 | 1390 | let prologAction = prolog(i) | |
1389 | 1391 | if ((size(i.payments) != 0)) | |
1390 | 1392 | then throw("No payments required") | |
1391 | 1393 | else { | |
1392 | 1394 | let addr = toString(i.originCaller) | |
1393 | 1395 | let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr) | |
1394 | 1396 | $Tuple2((((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._5[whIdxRes]) | |
1395 | 1397 | } | |
1396 | 1398 | } | |
1397 | 1399 | ||
1398 | 1400 | ||
1399 | 1401 | ||
1400 | 1402 | @Callable(i) | |
1401 | 1403 | func flight (message,sig) = { | |
1402 | 1404 | let prologAction = prolog(i) | |
1403 | 1405 | if (!(sigVerify_8Kb(message, sig, pub))) | |
1404 | 1406 | then throw("signature does not match") | |
1405 | 1407 | else if ((size(i.payments) != 0)) | |
1406 | 1408 | then throw("No payments required") | |
1407 | 1409 | else { | |
1408 | 1410 | let parts = split(toUtf8String(message), ";") | |
1409 | 1411 | let flightLog = split(parts[0], "|") | |
1410 | 1412 | let hp = split(flightLog[flHealth], "_") | |
1411 | 1413 | let curHP = parseIntValue(hp[0]) | |
1412 | 1414 | let newHP = parseIntValue(hp[1]) | |
1413 | 1415 | let newLocTxVer = split(parts[1], ":") | |
1414 | 1416 | let newLocation = newLocTxVer[0] | |
1415 | 1417 | let time = parseIntValue(flightLog[flTimestamp]) | |
1416 | 1418 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1417 | 1419 | then true | |
1418 | 1420 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1419 | 1421 | then throw("signature outdated") | |
1420 | 1422 | else { | |
1421 | 1423 | let txFromMsg = newLocTxVer[1] | |
1422 | 1424 | let lastTx = valueOrElse(getString(keyLastTxIdByUser(toString(i.originCaller))), "") | |
1423 | 1425 | if ((lastTx != txFromMsg)) | |
1424 | 1426 | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1425 | 1427 | else { | |
1426 | 1428 | let userAddr = toString(i.caller) | |
1427 | 1429 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
1428 | 1430 | let keyHealth = keyDuckHealth(duckAssetId) | |
1429 | 1431 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
1430 | 1432 | if ((oldFromState != curHP)) | |
1431 | 1433 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
1432 | 1434 | else if ((0 >= curHP)) | |
1433 | 1435 | then throw("You can't fly with zero health") | |
1434 | 1436 | else { | |
1435 | 1437 | let locKey = keyDuckLocation(duckAssetId) | |
1436 | 1438 | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
1437 | 1439 | if ((newLocation == curLocation)) | |
1438 | 1440 | then throw("You can't fly to the same location") | |
1439 | 1441 | else { | |
1440 | 1442 | let bonus = if ((size(flightLog) > flBonus)) | |
1441 | 1443 | then flightLog[flBonus] | |
1442 | 1444 | else "" | |
1443 | 1445 | let sentAmount = if (if ((newHP > 0)) | |
1444 | 1446 | then (bonus == "$") | |
1445 | 1447 | else false) | |
1446 | 1448 | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1447 | 1449 | else 0 | |
1448 | 1450 | $Tuple2([StringEntry(locKey, if ((newHP > 0)) | |
1449 | 1451 | then newLocation | |
1450 | 1452 | else curLocation), IntegerEntry(keyHealth, newHP), prologAction], sentAmount) | |
1451 | 1453 | } | |
1452 | 1454 | } | |
1453 | 1455 | } | |
1454 | 1456 | } | |
1455 | 1457 | } | |
1456 | 1458 | } | |
1457 | 1459 | ||
1458 | 1460 | ||
1459 | 1461 | ||
1460 | 1462 | @Callable(i) | |
1461 | 1463 | func setHealth (health,duckAssetId) = { | |
1462 | 1464 | let prologAction = prolog(i) | |
1463 | 1465 | if (if ((0 > health)) | |
1464 | 1466 | then true | |
1465 | 1467 | else (health > 100)) | |
1466 | 1468 | then throw("HP should be within 0..100") | |
1467 | 1469 | else [IntegerEntry(keyDuckHealth(duckAssetId), health), prologAction] | |
1468 | 1470 | } | |
1469 | 1471 | ||
1470 | 1472 | ||
1471 | 1473 | ||
1472 | 1474 | @Callable(i) | |
1473 | 1475 | func heal (matType,amount) = { | |
1474 | 1476 | let prologAction = prolog(i) | |
1475 | 1477 | if (if ((0 > matType)) | |
1476 | 1478 | then true | |
1477 | 1479 | else (matType >= NUMRES)) | |
1478 | 1480 | then throw(("Unknown material: " + toString(matType))) | |
1479 | 1481 | else if ((0 >= amount)) | |
1480 | 1482 | then throw(("Amount should be positive! " + toString(amount))) | |
1481 | 1483 | else { | |
1482 | 1484 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1483 | 1485 | let keyHealth = keyDuckHealth(duckAssetId) | |
1484 | 1486 | let oldHealth = valueOrElse(getInteger(keyHealth), 100) | |
1485 | 1487 | if ((oldHealth >= 100)) | |
1486 | 1488 | then throw("HP should be < 100 to heal") | |
1487 | 1489 | else { | |
1488 | 1490 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1489 | 1491 | let currentPack = getBackpack(bpKey) | |
1490 | 1492 | let mList = split(currentPack[bpIdxMat], "_") | |
1491 | 1493 | let currentAmount = parseIntValue(mList[matType]) | |
1492 | 1494 | let deltaHealth = min([(amount / HEALCOST), (100 - oldHealth)]) | |
1493 | 1495 | let spendAmount = (deltaHealth * HEALCOST) | |
1494 | 1496 | if ((spendAmount > currentAmount)) | |
1495 | 1497 | then throw(((((("You need " + toString(spendAmount)) + " of ") + matTypes[matType]) + " to heal, but you backpack contains ") + toString(currentAmount))) | |
1496 | 1498 | else { | |
1497 | 1499 | let newMat = subOneInList(mList, matType, spendAmount) | |
1498 | 1500 | [IntegerEntry(keyHealth, (oldHealth + deltaHealth)), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), prologAction] | |
1499 | 1501 | } | |
1500 | 1502 | } | |
1501 | 1503 | } | |
1502 | 1504 | } | |
1503 | 1505 | ||
1504 | 1506 | ||
1505 | 1507 | ||
1506 | 1508 | @Callable(i) | |
1507 | 1509 | func updateBackpack (duckAssetId,newPack) = { | |
1508 | 1510 | let prologAction = prolog(i) | |
1509 | 1511 | if ((i.caller != economyContract)) | |
1510 | 1512 | then throw("permission denied") | |
1511 | 1513 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack), prologAction], newPack) | |
1512 | 1514 | } | |
1513 | 1515 | ||
1514 | 1516 | ||
1515 | 1517 | ||
1516 | 1518 | @Callable(i) | |
1517 | 1519 | func buySLand () = { | |
1518 | 1520 | let prologAction = prolog(i) | |
1519 | 1521 | if ((size(i.payments) != 1)) | |
1520 | 1522 | then throw("Exactly one payment required") | |
1521 | 1523 | else { | |
1522 | 1524 | let pmt = value(i.payments[0]) | |
1523 | 1525 | if ((pmt.assetId != usdtAssetId)) | |
1524 | 1526 | then throw("Allowed USDT payment only!") | |
1525 | 1527 | else if ((pmt.amount != EXPUSDT)) | |
1526 | 1528 | then throw(("Payment attached should be " + toString(EXPUSDT))) | |
1527 | 1529 | else { | |
1528 | 1530 | let result = expeditionInternal(i.caller, i.transactionId) | |
1529 | 1531 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2._1) | |
1530 | 1532 | } | |
1531 | 1533 | } | |
1532 | 1534 | } | |
1533 | 1535 | ||
1534 | 1536 | ||
1535 | 1537 | ||
1536 | 1538 | @Callable(i) | |
1537 | 1539 | func expedition (message,sig) = { | |
1538 | 1540 | let prologAction = prolog(i) | |
1539 | 1541 | if ((size(i.payments) != 0)) | |
1540 | 1542 | then throw("No payments required") | |
1541 | 1543 | else { | |
1542 | 1544 | let result = expeditionCommon(true, i.caller, i.transactionId, message, sig) | |
1543 | 1545 | $Tuple2((result._1 :+ prologAction), result._2) | |
1544 | 1546 | } | |
1545 | 1547 | } | |
1546 | 1548 | ||
1547 | 1549 | ||
1548 | 1550 | ||
1549 | 1551 | @Callable(i) | |
1550 | 1552 | func upgradeInfra (landAssetId) = { | |
1551 | 1553 | let prologAction = prolog(i) | |
1552 | 1554 | if ((size(i.payments) != 0)) | |
1553 | 1555 | then throw("No payments required") | |
1554 | 1556 | else { | |
1555 | 1557 | let result = upInfraCommon(true, i.caller, 0, landAssetId) | |
1556 | 1558 | $Tuple2((result._1 :+ prologAction), result._2) | |
1557 | 1559 | } | |
1558 | 1560 | } | |
1559 | 1561 | ||
1560 | 1562 | ||
1561 | 1563 | ||
1562 | 1564 | @Callable(i) | |
1563 | 1565 | func upgradeInfraUsdt (landAssetId) = if ((i.caller != this)) | |
1564 | 1566 | then throw("Permission denied") | |
1565 | 1567 | else { | |
1566 | 1568 | let prologAction = prolog(i) | |
1567 | 1569 | if ((size(i.payments) != 1)) | |
1568 | 1570 | then throw("Exactly one payment required") | |
1569 | 1571 | else { | |
1570 | 1572 | let pmt = value(i.payments[0]) | |
1571 | 1573 | if ((pmt.assetId != usdtAssetId)) | |
1572 | 1574 | then throw("Allowed USDT payment only!") | |
1573 | 1575 | else { | |
1574 | 1576 | let result = upInfraCommon(false, i.caller, pmt.amount, landAssetId) | |
1575 | 1577 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
1576 | 1578 | } | |
1577 | 1579 | } | |
1578 | 1580 | } | |
1579 | 1581 | ||
1580 | 1582 | ||
1581 | 1583 | ||
1582 | 1584 | @Callable(i) | |
1583 | 1585 | func activateArtifact (artName,landAssetId) = { | |
1584 | 1586 | let prologAction = prolog(i) | |
1585 | 1587 | if ((size(i.payments) != 0)) | |
1586 | 1588 | then throw("No payments required") | |
1587 | 1589 | else { | |
1588 | 1590 | let result = match artName { | |
1589 | 1591 | case _ => | |
1590 | 1592 | if (("PRESALE" == $match0)) | |
1591 | 1593 | then activatePresaleArt(toString(i.caller), landAssetId) | |
1592 | 1594 | else throw("Unknown artifact") | |
1593 | 1595 | } | |
1594 | 1596 | (result :+ prologAction) | |
1595 | 1597 | } | |
1596 | 1598 | } | |
1597 | 1599 | ||
1598 | 1600 | ||
1599 | 1601 | ||
1600 | 1602 | @Callable(i) | |
1601 | 1603 | func mergeLands (landAssetIds) = { | |
1602 | 1604 | let prologAction = prolog(i) | |
1603 | 1605 | if ((size(i.payments) != 0)) | |
1604 | 1606 | then throw("No payments required") | |
1605 | 1607 | else { | |
1606 | 1608 | let result = mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
1607 | 1609 | $Tuple2((result._1 :+ prologAction), result._2) | |
1608 | 1610 | } | |
1609 | 1611 | } | |
1610 | 1612 | ||
1611 | 1613 | ||
1612 | 1614 | ||
1613 | 1615 | @Callable(i) | |
1614 | 1616 | func mergeLandsUsdt (landAssetIds) = { | |
1615 | 1617 | let prologAction = prolog(i) | |
1616 | 1618 | if ((size(i.payments) != 1)) | |
1617 | 1619 | then throw("Exactly one payment required") | |
1618 | 1620 | else { | |
1619 | 1621 | let pmt = value(i.payments[0]) | |
1620 | 1622 | if ((pmt.assetId != usdtAssetId)) | |
1621 | 1623 | then throw("Allowed USDT payment only!") | |
1622 | 1624 | else { | |
1623 | 1625 | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
1624 | 1626 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
1625 | 1627 | } | |
1626 | 1628 | } | |
1627 | 1629 | } | |
1628 | 1630 | ||
1629 | 1631 | ||
1630 | 1632 | ||
1631 | 1633 | @Callable(i) | |
1632 | 1634 | func cargoExchange (cargoListStr,landAssetId) = { | |
1633 | 1635 | let prologAction = prolog(i) | |
1634 | 1636 | if ((size(i.payments) != 0)) | |
1635 | 1637 | then throw("No payments required") | |
1636 | 1638 | else { | |
1637 | 1639 | let cargoParts = split_4C(cargoListStr, ":") | |
1638 | 1640 | let addr = toString(i.originCaller) | |
1639 | 1641 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1640 | 1642 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1641 | 1643 | if (!(isDefined(getInteger(timeKey)))) | |
1642 | 1644 | then throw((asset.name + " is not staked")) | |
1643 | 1645 | else { | |
1644 | 1646 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1645 | 1647 | if ((owner != addr)) | |
1646 | 1648 | then throw((LANDPREFIX + " is not yours")) | |
1647 | 1649 | else { | |
1648 | 1650 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1649 | 1651 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1650 | 1652 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1651 | 1653 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
1652 | 1654 | let loc = split(value(curLocation), "_") | |
1653 | 1655 | if ((loc[locIdxType] != "L")) | |
1654 | 1656 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1655 | 1657 | else if ((loc[locIdxId] != landAssetId)) | |
1656 | 1658 | then throw(("Duck should be on the land " + landAssetId)) | |
1657 | 1659 | else { | |
1658 | 1660 | let whKey = keyWarehouseByLand(landAssetId) | |
1659 | 1661 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1660 | 1662 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1661 | 1663 | let currentPack = getBackpack(bpKey) | |
1662 | 1664 | let result = moveStuff(cargoParts, currentWh, currentPack) | |
1663 | 1665 | [StringEntry(bpKey, makeString([currentPack[bpIdxLevel], result._4, result._5, result._6], ":")), StringEntry(whKey, makeString([currentWh[whIdxVol], result._1, result._2, result._3, currentWh[whIdxLockedVol]], ":")), prologAction] | |
1664 | 1666 | } | |
1665 | 1667 | } | |
1666 | 1668 | } | |
1667 | 1669 | } | |
1668 | 1670 | } | |
1669 | 1671 | ||
1670 | 1672 | ||
1671 | 1673 | ||
1672 | 1674 | @Callable(i) | |
1673 | 1675 | func saveWarehouse (whStr,landAssetId) = { | |
1674 | 1676 | let prologAction = prolog(i) | |
1675 | 1677 | if ((i.caller != economyContract)) | |
1676 | 1678 | then throw("Access denied") | |
1677 | 1679 | else { | |
1678 | 1680 | let whKey = keyWarehouseByLand(landAssetId) | |
1679 | 1681 | if ((size(split_4C(whStr, ":")) != 5)) | |
1680 | 1682 | then throw("warehouse string should contain 4 ':' separators") | |
1681 | 1683 | else $Tuple2([StringEntry(whKey, whStr), prologAction], whStr) | |
1682 | 1684 | } | |
1683 | 1685 | } | |
1684 | 1686 | ||
1685 | 1687 | ||
1686 | 1688 | ||
1687 | 1689 | @Callable(i) | |
1688 | 1690 | func replaceBooleanArtifact (landAssetId) = if ((i.caller != restContract)) | |
1689 | 1691 | then throw("Access denied") | |
1690 | 1692 | else { | |
1691 | 1693 | let boolKey = keyPresaleArtActivatedByAssetId(landAssetId) | |
1692 | 1694 | let intKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1693 | 1695 | let boolArt = getBoolean(boolKey) | |
1694 | 1696 | if (isDefined(boolArt)) | |
1695 | 1697 | then { | |
1696 | 1698 | let d = split(value(assetInfo(fromBase58String(landAssetId))).description, "_") | |
1697 | 1699 | let pieces = numPiecesBySize(d[recLandSize]) | |
1698 | 1700 | let artPieces = valueOrElse(getInteger(intKey), pieces) | |
1699 | 1701 | let owner = getString(keyLandAssetIdToOwner(landAssetId)) | |
1700 | 1702 | let ownerRecords = if (isDefined(owner)) | |
1701 | 1703 | then [IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, value(owner)), artPieces), DeleteEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, value(owner)))] | |
1702 | 1704 | else nil | |
1703 | 1705 | if (value(boolArt)) | |
1704 | 1706 | then $Tuple2(((ownerRecords :+ IntegerEntry(intKey, artPieces)) :+ DeleteEntry(boolKey)), 2) | |
1705 | 1707 | else $Tuple2([DeleteEntry(boolKey)], 1) | |
1706 | 1708 | } | |
1707 | 1709 | else $Tuple2(nil, 0) | |
1708 | 1710 | } | |
1709 | 1711 | ||
1710 | 1712 | ||
1711 | 1713 | ||
1712 | 1714 | @Callable(i) | |
1713 | 1715 | func setCustomName (assetId,customName,type) = { | |
1714 | 1716 | let prologAction = prolog(i) | |
1715 | 1717 | if ((size(i.payments) != 1)) | |
1716 | 1718 | then throw("Exactly one payment required") | |
1717 | 1719 | else { | |
1718 | 1720 | let pmt = value(i.payments[0]) | |
1719 | 1721 | if ((pmt.assetId != usdtAssetId)) | |
1720 | 1722 | then throw("Allowed USDT payment only!") | |
1721 | 1723 | else if ((pmt.amount != RENAMINGCOST)) | |
1722 | 1724 | then throw(("Payment should be " + toString(RENAMINGCOST))) | |
1723 | 1725 | else if (contains(customName, "__")) | |
1724 | 1726 | then throw(("Name should not contain '__': " + customName)) | |
1725 | 1727 | else if ((size(customName) > MAXNAMELEN)) | |
1726 | 1728 | then throw(("Name too long, maxLength=" + toString(MAXNAMELEN))) | |
1727 | 1729 | else { | |
1728 | 1730 | let addr = toString(i.originCaller) | |
1729 | 1731 | let actions = match type { | |
1730 | 1732 | case _ => | |
1731 | 1733 | if (("ACCOUNT" == $match0)) | |
1732 | 1734 | then { | |
1733 | 1735 | let reverseKey = keyCustomNameToAddress(customName) | |
1734 | 1736 | let oldName = getString(reverseKey) | |
1735 | 1737 | if (isDefined(oldName)) | |
1736 | 1738 | then throw(("Name already registered: " + customName)) | |
1737 | 1739 | else [StringEntry(keyAddressToCustomName(addr), customName), StringEntry(reverseKey, addr)] | |
1738 | 1740 | } | |
1739 | 1741 | else if (("LAND" == $match0)) | |
1740 | 1742 | then { | |
1741 | 1743 | let asset = value(assetInfo(fromBase58String(assetId))) | |
1742 | 1744 | let timeKey = keyStakedTimeByAssetId(assetId) | |
1743 | 1745 | if (!(isDefined(getInteger(timeKey)))) | |
1744 | 1746 | then throw((asset.name + " is not staked")) | |
1745 | 1747 | else { | |
1746 | 1748 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
1747 | 1749 | if ((owner != addr)) | |
1748 | 1750 | then throw((LANDPREFIX + " is not yours")) | |
1749 | 1751 | else { | |
1750 | 1752 | let reverseKey = keyLandCustomNameToAssetId(customName) | |
1751 | 1753 | let oldName = getString(reverseKey) | |
1752 | 1754 | if (isDefined(oldName)) | |
1753 | 1755 | then throw(("Name already registered: " + customName)) | |
1754 | 1756 | else [StringEntry(keyLandAssetIdToCustomName(assetId), customName), StringEntry(reverseKey, assetId)] | |
1755 | 1757 | } | |
1756 | 1758 | } | |
1757 | 1759 | } | |
1758 | 1760 | else if (("DUCK" == $match0)) | |
1759 | 1761 | then { | |
1760 | 1762 | let asset = value(assetInfo(fromBase58String(assetId))) | |
1761 | 1763 | let timeKey = keyStakedTimeByAssetId(assetId) | |
1762 | 1764 | if (if (!(isDefined(getInteger(timeKey)))) | |
1763 | 1765 | then true | |
1764 | 1766 | else !(isDefined(getString(keyStakedDuckByOwner(addr))))) | |
1765 | 1767 | then throw((asset.name + " is not staked")) | |
1766 | 1768 | else { | |
1767 | 1769 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
1768 | 1770 | if ((owner != addr)) | |
1769 | 1771 | then throw((DUCKPREFIX + " is not yours")) | |
1770 | 1772 | else { | |
1771 | 1773 | let reverseKey = keyDuckCustomNameToAssetId(customName) | |
1772 | 1774 | let oldName = getString(reverseKey) | |
1773 | 1775 | if (isDefined(oldName)) | |
1774 | 1776 | then throw(("Name already registered: " + customName)) | |
1775 | 1777 | else [StringEntry(keyDuckAssetIdToCustomName(assetId), customName), StringEntry(reverseKey, assetId)] | |
1776 | 1778 | } | |
1777 | 1779 | } | |
1778 | 1780 | } | |
1779 | 1781 | else throw("Unknown entity type") | |
1780 | 1782 | } | |
1781 | 1783 | $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), 0) | |
1782 | 1784 | } | |
1783 | 1785 | } | |
1784 | 1786 | } | |
1785 | 1787 | ||
1786 | 1788 | ||
1787 | 1789 | ||
1788 | 1790 | @Callable(i) | |
1789 | 1791 | func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub)) | |
1790 | 1792 | then throw("Permission denied") | |
1791 | 1793 | else { | |
1792 | 1794 | let prologAction = prolog(i) | |
1793 | 1795 | if ((size(i.payments) != 0)) | |
1794 | 1796 | then throw("No payments required") | |
1795 | 1797 | else if (!(isDefined(addressFromString(oldPlayer)))) | |
1796 | 1798 | then throw(("Invalid address: " + oldPlayer)) | |
1797 | 1799 | else if (!(isDefined(addressFromString(newPlayer)))) | |
1798 | 1800 | then throw(("Invalid address: " + newPlayer)) | |
1799 | 1801 | else { | |
1800 | 1802 | let oldsKey = keyOldies() | |
1801 | 1803 | let olds = getString(oldsKey) | |
1802 | 1804 | let oldies = if (isDefined(olds)) | |
1803 | 1805 | then split_4C(value(olds), "_") | |
1804 | 1806 | else nil | |
1805 | 1807 | if (containsElement(oldies, newPlayer)) | |
1806 | 1808 | then throw((newPlayer + " is not newbie (already has referrals)")) | |
1807 | 1809 | else { | |
1808 | 1810 | let refByKey = keyAddressRefBy(newPlayer) | |
1809 | 1811 | let refBy = getString(refByKey) | |
1810 | 1812 | if (if (isDefined(refBy)) | |
1811 | 1813 | then isDefined(addressFromString(value(refBy))) | |
1812 | 1814 | else false) | |
1813 | 1815 | then throw(((newPlayer + " already has refBy: ") + value(refBy))) | |
1814 | 1816 | else { | |
1815 | 1817 | let refsKey = keyAddressReferrals(oldPlayer) | |
1816 | 1818 | let refs = getString(refsKey) | |
1817 | 1819 | let refsArray = if (isDefined(refs)) | |
1818 | 1820 | then split_4C(value(refs), "_") | |
1819 | 1821 | else nil | |
1820 | 1822 | if (containsElement(refsArray, newPlayer)) | |
1821 | 1823 | then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals")) | |
1822 | 1824 | else { | |
1823 | 1825 | let newRefs = makeString_2C((refsArray :+ newPlayer), "_") | |
1824 | 1826 | let newOlds = makeString_2C((oldies :+ oldPlayer), "_") | |
1825 | 1827 | $Tuple2([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds), prologAction], 0) | |
1826 | 1828 | } | |
1827 | 1829 | } | |
1828 | 1830 | } | |
1829 | 1831 | } | |
1830 | 1832 | } | |
1831 | 1833 | ||
1832 | 1834 | ||
1833 | 1835 | ||
1834 | 1836 | @Callable(i) | |
1835 | 1837 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
1836 | 1838 | ||
1837 | 1839 | ||
1838 | 1840 | ||
1839 | 1841 | @Callable(i) | |
1840 | 1842 | func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = { | |
1841 | 1843 | let terrainCounts = countTerrains(terrains) | |
1842 | 1844 | $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts))) | |
1843 | 1845 | } | |
1844 | 1846 | ||
1845 | 1847 | ||
1846 | 1848 | ||
1847 | 1849 | @Callable(i) | |
1848 | 1850 | func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":")) | |
1849 | 1851 | ||
1850 | 1852 | ||
1851 | 1853 | ||
1852 | 1854 | @Callable(i) | |
1853 | 1855 | func getWarehouseREADONLY (landAssetId) = { | |
1854 | 1856 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1855 | 1857 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1856 | 1858 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1857 | 1859 | $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":")) | |
1858 | 1860 | } | |
1859 | 1861 | ||
1860 | 1862 |
github/deemru/w8io/169f3d6 226.29 ms ◑