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