tx · Gxzcz4PakVUhnDzHmRSbN3kJfvonFf7ST9oJgmmXnxMa

3MsH95R1SdYUEkUTVjHvR8gLD8rXtgQ21Vj:  -0.01400000 Waves

2021.04.14 13:29 [1482004] smart account 3MsH95R1SdYUEkUTVjHvR8gLD8rXtgQ21Vj > SELF 0.00000000 Waves

{ "type": 13, "id": "Gxzcz4PakVUhnDzHmRSbN3kJfvonFf7ST9oJgmmXnxMa", "fee": 1400000, "feeAssetId": null, "timestamp": 1618396185340, "version": 2, "chainId": 84, "sender": "3MsH95R1SdYUEkUTVjHvR8gLD8rXtgQ21Vj", "senderPublicKey": "GYeGBXmJUHrtkkJuLVJKCHtaCbkvj9nS4aVLqzdrbpZx", "proofs": [ "uiGTokdjmtGwXryxLFg6fMhGr9vfnahMdsiMvS9fyUwVqv82hsuTySpRJbr6mPNJCH8TYqoYuLgLXEEePS77UKw" ], "script": "base64:AAIEAAAAAAAAABoIAhIECgIIARIDCgEIEgMKAQgSBAoCCAESAAAAABgAAAAAB3ZlcnNpb24AAAAAAAAAAAEAAAAACXNlcGFyYXRvcgIAAAADX19fAAAAAAhkZWNpbWFscwkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAoJAARMAAAAAgAAAAAAAAAAZAkABEwAAAACAAAAAAAAAAPoCQAETAAAAAIAAAAAAAAAJxAJAARMAAAAAgAAAAAAAAGGoAkABEwAAAACAAAAAAAAD0JACQAETAAAAAIAAAAAAACYloAJAARMAAAAAgAAAAAABfXhAAUAAAADbmlsAAAAAAZtYXhJbnQAf/////////8AAAAADmFkZHJQcml2aWxlZ2VzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXlvamYxajdXMlM1WFNLZW1HYXFFcmNTWWdocUNnUTFncAAAAAAJYWRkclZhdWx0CQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXV0VFZYaDdaMm05Q2Z6eDk4MkQ0bm03aDlZenIzUmE5YQAAAAAKbmliZWxBc3N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XVhbnRpdHkJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADmVsaWdpYmxlQmxvY2tzBQAAAA5lbGlnaWJsZUJsb2NrcwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAALZm9yZ2VXZWlnaHQFAAAAC2ZvcmdlV2VpZ2h0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAA1mb3JnZVN1cHBsaWVzBQAAAA1mb3JnZVN1cHBsaWVzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABFmb3JnZXNUb3RhbFdlaWdodAUAAAARZm9yZ2VzVG90YWxXZWlnaHQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACmZvcmdlU2hhcmUFAAAACmZvcmdlU2hhcmUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAD2ZvcmdlQmxvY2tWYWx1ZQUAAAAPZm9yZ2VCbG9ja1ZhbHVlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAtjYWxsZXJTaGFyZQUAAAALY2FsbGVyU2hhcmUFAAAAA25pbAAAAACEuIER", "height": 1482004, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DobJCN8pF8hqyRT9xRUfLfeYXHmgTKF5ocqNcsVs1BHE Next: 4XxNQYrsxXvBTATQ4RS8gnWKpy5vNbBBdLq9nMCZ1Wcu Diff:
OldNewDifferences
198198 let forgeShare = fraction(1, forgeWeight, forgesTotalWeight)
199199 let forgeBlockValue = fraction(nibelAmountPerBlocks, forgeShare, 1)
200200 let callerShare = (fraction(eligibleBlocks, assetQuantity, forgeSupplies) * forgeBlockValue)
201-[IntegerEntry("forgeWeight", forgeWeight), IntegerEntry("forgeSupplies", forgeSupplies), IntegerEntry("forgesTotalWeight", forgesTotalWeight), IntegerEntry("forgeShare", forgeShare), IntegerEntry("forgeBlockValue", forgeBlockValue), IntegerEntry("callerShare", callerShare)]
201+[IntegerEntry("assetQuantity", assetQuantity), IntegerEntry("eligibleBlocks", eligibleBlocks), IntegerEntry("forgeWeight", forgeWeight), IntegerEntry("forgeSupplies", forgeSupplies), IntegerEntry("forgesTotalWeight", forgesTotalWeight), IntegerEntry("forgeShare", forgeShare), IntegerEntry("forgeBlockValue", forgeBlockValue), IntegerEntry("callerShare", callerShare)]
202202 }
203203 }
204204 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = 1
55
66 let separator = "___"
77
88 let decimals = [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000]
99
1010 let maxInt = 9223372036854775807
1111
1212 let addrPrivileges = addressFromStringValue("3Myojf1j7W2S5XSKemGaqErcSYghqCgQ1gp")
1313
1414 let addrVault = addressFromStringValue("3MutTVXh7Z2m9Cfzx982D4nm7h9Yzr3Ra9a")
1515
1616 let nibelAsset = base58'8c6SCeWJj6M1VFBaFEg2LWxYS77ZHkmiMeAs6MMSDi1v'
1717
1818 let nibelAmountPerBlocks = 1000000000000
1919
2020 let nibelGenesisBlock = 0
2121
2222 let nibelHavlingDelay = 100000
2323
2424 let sharedKeyMainOperator = "MAIN_OPERATOR"
2525
2626 let sharedKeyPrivilege = "PRIVILEGE"
2727
2828 let sharedReceiptTag = "R"
2929
3030 let keyForgesTotalWeight = "FORGES_TOTAL_WEIGHT"
3131
3232 let keyForgeSettingsEnabled = "FS_ENABLED_"
3333
3434 let keyForgeSettingsSupplies = "FS_SUPPLIES_"
3535
3636 let keyForgeSettingsWeight = "FS_WEIGHT_"
3737
3838 func isSafeString (stringToTest) = if ((contains(stringToTest, separator) == false))
3939 then (contains(stringToTest, " ") == false)
4040 else false
4141
4242
4343 func isSafeInteger (integerToTest) = match integerToTest {
4444 case isString: String =>
4545 match parseInt(isString) {
4646 case isInteger: Int =>
4747 if ((isInteger >= 0))
4848 then (maxInt >= isInteger)
4949 else false
5050 case _ =>
5151 false
5252 }
5353 case isInteger: Int =>
5454 if ((isInteger >= 0))
5555 then (maxInt >= isInteger)
5656 else false
5757 case _ =>
5858 false
5959 }
6060
6161
6262 func toSafeInteger (stringToConvert) = {
6363 let parsedInteger = valueOrErrorMessage(parseInt(stringToConvert), "Not a string int")
6464 if ((isSafeInteger(parsedInteger) != true))
6565 then throw("Not safe")
6666 else parsedInteger
6767 }
6868
6969
7070 func isAsset (assetToTest) = match assetToTest {
7171 case isString: String =>
7272 isDefined(assetInfo(fromBase58String(isString)))
7373 case isByteVector: ByteVector =>
7474 isDefined(assetInfo(isByteVector))
7575 case _ =>
7676 false
7777 }
7878
7979
8080 func isWhitelisted (assetToTest) = isDefined(getBoolean(this, (keyForgeSettingsEnabled + assetToTest)))
8181
8282
8383 func hasPrivilege (callerAddress,privilegeName) = if ((addressFromStringValue(getStringValue(addrPrivileges, sharedKeyMainOperator)) == callerAddress))
8484 then true
8585 else match getInteger(addrPrivileges, (((((sharedKeyPrivilege + separator) + toBase58String(callerAddress.bytes)) + separator) + toBase58String(this.bytes)) + privilegeName)) {
8686 case isInteger: Int =>
8787 true
8888 case _ =>
8989 false
9090 }
9191
9292
9393 func calcForgeWeight (forgeSupplies) = fraction(1, maxInt, forgeSupplies)
9494
9595
9696 @Callable(i)
9797 func addAssetToWhitelist (assetToAdd,assetTotalSupplies) = if ((hasPrivilege(i.caller, "addAssetToWhitelist") != true))
9898 then throw("Access denied")
9999 else if (if ((isAsset(assetToAdd) != true))
100100 then true
101101 else (isSafeInteger(assetTotalSupplies) != true))
102102 then throw("Data validation")
103103 else if ((isWhitelisted(assetToAdd) != false))
104104 then throw("Asset already whitelisted")
105105 else {
106106 let forgeWeight = calcForgeWeight(assetTotalSupplies)
107107 let newForgesTotalWeight = (getIntegerValue(this, keyForgesTotalWeight) + forgeWeight)
108108 [BooleanEntry((keyForgeSettingsEnabled + assetToAdd), true), IntegerEntry((keyForgeSettingsSupplies + assetToAdd), assetTotalSupplies), IntegerEntry((keyForgeSettingsWeight + assetToAdd), forgeWeight), IntegerEntry(keyForgesTotalWeight, newForgesTotalWeight)]
109109 }
110110
111111
112112
113113 @Callable(i)
114114 func removeAssetFromWhitelist (assetToRemove) = if ((hasPrivilege(i.caller, "removeAssetFromWhitelist") != true))
115115 then throw("Access denied")
116116 else if ((isAsset(assetToRemove) != true))
117117 then throw("Data validation")
118118 else if ((isWhitelisted(assetToRemove) != true))
119119 then throw("Asset not whitelisted")
120120 else {
121121 let actions = [DeleteEntry((keyForgeSettingsEnabled + assetToRemove)), DeleteEntry((keyForgeSettingsSupplies + assetToRemove)), DeleteEntry((keyForgeSettingsWeight + assetToRemove))]
122122 if ((getBooleanValue(this, (keyForgeSettingsEnabled + assetToRemove)) != true))
123123 then actions
124124 else IntegerEntry(keyForgesTotalWeight, (getIntegerValue(this, keyForgesTotalWeight) - getIntegerValue(this, (keyForgeSettingsWeight + assetToRemove)))) :: actions
125125 }
126126
127127
128128
129129 @Callable(i)
130130 func enableDisableForge (assetToToggle) = if ((hasPrivilege(i.caller, "enableDisableForge") != true))
131131 then throw("Access denied")
132132 else if ((isAsset(assetToToggle) != true))
133133 then throw("Data validation")
134134 else {
135135 let forgeWeight = getIntegerValue(this, keyForgeSettingsWeight)
136136 let forgesTotalWeight = getIntegerValue(this, keyForgesTotalWeight)
137137 if ((getBooleanValue(this, (keyForgeSettingsEnabled + assetToToggle)) != true))
138138 then [IntegerEntry(keyForgesTotalWeight, (forgesTotalWeight + forgeWeight)), BooleanEntry((keyForgeSettingsEnabled + assetToToggle), true)]
139139 else [IntegerEntry(keyForgesTotalWeight, (forgesTotalWeight - forgeWeight)), BooleanEntry((keyForgeSettingsEnabled + assetToToggle), false)]
140140 }
141141
142142
143143
144144 @Callable(i)
145145 func updateForgeAssetSupplies (assetToUpdate,newSuppliesValue) = if ((hasPrivilege(i.caller, "updateForgeAssetSupplies") != true))
146146 then throw("Access denied")
147147 else if (if ((isAsset(assetToUpdate) != true))
148148 then true
149149 else (isSafeInteger(newSuppliesValue) != true))
150150 then throw("Data validation")
151151 else if ((isWhitelisted(assetToUpdate) != true))
152152 then throw("Asset not whitelisted")
153153 else {
154154 let currentForgeWeight = getIntegerValue(this, (keyForgeSettingsWeight + assetToUpdate))
155155 let newForgeWeight = calcForgeWeight(newSuppliesValue)
156156 let actions = [IntegerEntry((keyForgeSettingsWeight + assetToUpdate), newForgeWeight), IntegerEntry((keyForgeSettingsSupplies + assetToUpdate), newSuppliesValue)]
157157 if ((getBooleanValue(this, (keyForgeSettingsEnabled + assetToUpdate)) != true))
158158 then actions
159159 else IntegerEntry(keyForgesTotalWeight, ((getIntegerValue(this, keyForgesTotalWeight) + newForgeWeight) - currentForgeWeight)) :: actions
160160 }
161161
162162
163163
164164 @Callable(i)
165165 func claim () = if ((this == i.caller))
166166 then throw("Self-invoke forbidden")
167167 else if (if ((size(i.payments) != 1))
168168 then true
169169 else (i.payments[0].amount != 1))
170170 then throw("Payment issue")
171171 else {
172172 let receiptInfo = valueOrErrorMessage(assetInfo(valueOrErrorMessage(i.payments[0].assetId, "Wrong asset type")), "Unknown asset")
173173 if ((receiptInfo.issuer != addrVault))
174174 then throw("Unknown issuer")
175175 else {
176176 let receiptFields = split(receiptInfo.description, separator)
177177 if (if ((size(receiptFields) != 8))
178178 then true
179179 else (receiptFields[0] != sharedReceiptTag))
180180 then throw("Not a receipt")
181181 else if ((isWhitelisted(receiptFields[3]) != true))
182182 then throw("Not whitelisted")
183183 else {
184184 let startingBlock = toSafeInteger(receiptFields[1])
185185 let endingBlock = toSafeInteger(receiptFields[5])
186186 let assetQuantity = toSafeInteger(receiptFields[4])
187187 let eligibleBlocks = (endingBlock - startingBlock)
188188 if (if ((nibelGenesisBlock > startingBlock))
189189 then true
190190 else (nibelGenesisBlock > endingBlock))
191191 then throw("Not eligible")
192192 else if ((isSafeInteger(eligibleBlocks) != true))
193193 then throw("Corrupted receipt")
194194 else {
195195 let forgeWeight = getIntegerValue(this, (keyForgeSettingsWeight + receiptFields[3]))
196196 let forgeSupplies = getIntegerValue(this, (keyForgeSettingsSupplies + receiptFields[3]))
197197 let forgesTotalWeight = getIntegerValue(this, keyForgesTotalWeight)
198198 let forgeShare = fraction(1, forgeWeight, forgesTotalWeight)
199199 let forgeBlockValue = fraction(nibelAmountPerBlocks, forgeShare, 1)
200200 let callerShare = (fraction(eligibleBlocks, assetQuantity, forgeSupplies) * forgeBlockValue)
201-[IntegerEntry("forgeWeight", forgeWeight), IntegerEntry("forgeSupplies", forgeSupplies), IntegerEntry("forgesTotalWeight", forgesTotalWeight), IntegerEntry("forgeShare", forgeShare), IntegerEntry("forgeBlockValue", forgeBlockValue), IntegerEntry("callerShare", callerShare)]
201+[IntegerEntry("assetQuantity", assetQuantity), IntegerEntry("eligibleBlocks", eligibleBlocks), IntegerEntry("forgeWeight", forgeWeight), IntegerEntry("forgeSupplies", forgeSupplies), IntegerEntry("forgesTotalWeight", forgesTotalWeight), IntegerEntry("forgeShare", forgeShare), IntegerEntry("forgeBlockValue", forgeBlockValue), IntegerEntry("callerShare", callerShare)]
202202 }
203203 }
204204 }
205205 }
206206
207207

github/deemru/w8io/026f985 
33.95 ms