tx · EHBbi2tnWfz9CBnxV6qXokJjj1s1F6VZx4XqFqiotcSu

3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T:  -0.00500000 Waves

2024.10.11 09:44 [3321827] smart account 3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T > SELF 0.00000000 Waves

{ "type": 13, "id": "EHBbi2tnWfz9CBnxV6qXokJjj1s1F6VZx4XqFqiotcSu", "fee": 500000, "feeAssetId": null, "timestamp": 1728629047218, "version": 2, "chainId": 84, "sender": "3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T", "senderPublicKey": "iTiQR3Kvxn7i8PFgEbZn36n5iFLxFwkTA6M3wi846Vx", "proofs": [ "2dbEisKW1LdTAGZQfYMCYHFwHnr6qMmN4KJiQs9xVjeeZXdhoaUcBHhfm6K3zog8GzqyBuzunQM3bbQxpDA6c8YU" ], "script": "base64:BwJWCAISAwoBCBIECgIICBIECgIIARIECgIIBBIECgIIAhIDCgEIEgUKAwIBBBIECgICARIFCgMCAQISBQoDAhIREgQKAgIBEgQKAggYEgQKAggYEgMKAQERAAlzZXBhcmF0b3ICAl9fAAt3YXZlc1N0cmluZwIFV0FWRVMAEGNvbnRyYWN0RmlsZW5hbWUCFG1lbWVfaW1fZmFjdG9yeS5yaWRlAAtrUHJpY2VBc3NldAIMcHJpY2VfX2Fzc2V0AAlrU2h1dGRvd24CDnNodXRkb3duX19mbGFnAAhzaHV0ZG93bgkBC3ZhbHVlT3JFbHNlAgkAoAgBBQlrU2h1dGRvd24HAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ92YWxpZGF0ZUFkZHJlc3MBB2FkZHJlc3MJAQlpc0RlZmluZWQBCQCmCAEFB2FkZHJlc3MAEmtDYWxjdWxhdG9yQWRkcmVzcwITY2FsY3VsYXRvcl9fYWRkcmVzcwAXY2FsY3VsYXRvck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WVudHMJAJQKAgUDbmlsBQZyZXN1bHQBaQEOaW5pdFBvb2xJbnZva2UCEXBvb2xBZGRyZXNzU3RyaW5nBGFyZ3MDAwkBASEBBQhzaHV0ZG93bgkBDm11c3RDYWxjdWxhdG9yAQUBaQcEDWNvbnZlcnRlZEFyZ3MJAMwIAgkAkQMCBQRhcmdzAAAJAMwIAgkAkQMCBQRhcmdzAAEJAMwIAgkAkQMCBQRhcmdzAAIJAMwIAgkAkQMCBQRhcmdzAAMJAMwIAgkBDXBhcnNlSW50VmFsdWUBCQCRAwIFBGFyZ3MABAUDbmlsCQCUCgIFA25pbAkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBBRFwb29sQWRkcmVzc1N0cmluZwIEaW5pdAUNY29udmVydGVkQXJncwgFAWkIcGF5bWVudHMJAQh0aHJvd0VycgECC25vdCBhbGxvd2VkAWkBEm5vdGlmeVN0YXR1c1VwZGF0ZQEGc3RhdHVzBAZyZXN1bHQJAP0HBAURY2FsY3VsYXRvckFkZHJlc3MCEm5vdGlmeVN0YXR1c1VwZGF0ZQkAzAgCCAUBaQ9jYWxsZXJQdWJsaWNLZXkJAMwIAgkAzAgCCQCkAwEFBnN0YXR1cwUDbmlsBQNuaWwFA25pbAkAlAoCBQNuaWwFBnJlc3VsdAA8p2e2", "height": 3321827, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 21Fd71XYJxcKy6FAJx3m9PNNbmTgMyKqeoaQFXonWkTd Next: DSgyEnkUHetH5W7MjzTL4JTHNJUK2CTJzhZTawZHjsdU Diff:
OldNewDifferences
205205 else throwErr("not allowed")
206206
207207
208+
209+@Callable(i)
210+func notifyStatusUpdate (status) = {
211+ let result = reentrantInvoke(calculatorAddress, "notifyStatusUpdate", [i.callerPublicKey, [toString(status)]], nil)
212+ $Tuple2(nil, result)
213+ }
214+
215+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let wavesString = "WAVES"
77
88 let contractFilename = "meme_im_factory.ride"
99
1010 let kPriceAsset = "price__asset"
1111
1212 let kShutdown = "shutdown__flag"
1313
1414 let shutdown = valueOrElse(getBoolean(kShutdown), false)
1515
1616 func wrapErr (s) = ((contractFilename + ": ") + s)
1717
1818
1919 func throwErr (s) = throw(wrapErr(s))
2020
2121
2222 func validateAddress (address) = isDefined(addressFromString(address))
2323
2424
2525 let kCalculatorAddress = "calculator__address"
2626
2727 let calculatorAddressOption = match getString(this, kCalculatorAddress) {
2828 case s: String =>
2929 addressFromString(s)
3030 case _: Unit =>
3131 unit
3232 case _ =>
3333 throw("Match error")
3434 }
3535
3636 let calculatorAddress = valueOrErrorMessage(calculatorAddressOption, wrapErr("invalid calculator address"))
3737
3838 func mustAddress (i,address) = if ((i.caller == address))
3939 then true
4040 else throwErr("permission denied")
4141
4242
4343 func mustThis (i) = mustAddress(i, this)
4444
4545
4646 func mustCalculator (i) = mustAddress(i, calculatorAddress)
4747
4848
4949 func parseAssetId (input) = if ((input == wavesString))
5050 then unit
5151 else fromBase58String(input)
5252
5353
5454 func assetIdToString (input) = if ((input == unit))
5555 then wavesString
5656 else toBase58String(value(input))
5757
5858
5959 @Callable(i)
6060 func init (calculatorAddressStr) = {
6161 let checkCaller = mustThis(i)
6262 if ((checkCaller == checkCaller))
6363 then $Tuple2([StringEntry(kCalculatorAddress, calculatorAddressStr), StringEntry(kPriceAsset, wavesString)], unit)
6464 else throw("Strict value is not equal to itself.")
6565 }
6666
6767
6868
6969 @Callable(i)
7070 func stringEntry (key,val) = if (if (!(shutdown))
7171 then mustCalculator(i)
7272 else false)
7373 then $Tuple2([StringEntry(key, val)], key)
7474 else throwErr("not allowed")
7575
7676
7777
7878 @Callable(i)
7979 func integerEntry (key,val) = if (if (!(shutdown))
8080 then mustCalculator(i)
8181 else false)
8282 then $Tuple2([IntegerEntry(key, val)], key)
8383 else throwErr("not allowed")
8484
8585
8686
8787 @Callable(i)
8888 func booleanEntry (key,val) = if (if (!(shutdown))
8989 then mustCalculator(i)
9090 else false)
9191 then $Tuple2([BooleanEntry(key, val)], key)
9292 else throwErr("not allowed")
9393
9494
9595
9696 @Callable(i)
9797 func binaryEntry (key,val) = if (if (!(shutdown))
9898 then mustCalculator(i)
9999 else false)
100100 then $Tuple2([BinaryEntry(key, val)], key)
101101 else throwErr("not allowed")
102102
103103
104104
105105 @Callable(i)
106106 func deleteEntry (key) = if (if (!(shutdown))
107107 then mustCalculator(i)
108108 else false)
109109 then $Tuple2([DeleteEntry(key)], key)
110110 else throwErr("not allowed")
111111
112112
113113
114114 @Callable(i)
115115 func reissue (assetId,amount,reissuable) = if (if (!(shutdown))
116116 then mustCalculator(i)
117117 else false)
118118 then $Tuple2([Reissue(assetId, amount, reissuable)], amount)
119119 else throwErr("not allowed")
120120
121121
122122
123123 @Callable(i)
124124 func burn (assetId,amount) = if (if (!(shutdown))
125125 then mustCalculator(i)
126126 else false)
127127 then $Tuple2([Burn(assetId, amount)], amount)
128128 else throwErr("not allowed")
129129
130130
131131
132132 @Callable(i)
133133 func transferAsset (recipientBytes,amount,assetId) = if (if (!(shutdown))
134134 then mustCalculator(i)
135135 else false)
136136 then $Tuple2([ScriptTransfer(Address(recipientBytes), amount, assetId)], amount)
137137 else throwErr("not allowed")
138138
139139
140140
141141 @Callable(i)
142142 func transferAssets (recipientBytes,assetsList,amountsList) = if (if (!(shutdown))
143143 then mustCalculator(i)
144144 else false)
145145 then {
146146 func addNewTransfer (acc,nextAssetId) = {
147147 let $t031863210 = acc
148148 let transfers = $t031863210._1
149149 let j = $t031863210._2
150150 let newTransfer = ScriptTransfer(Address(recipientBytes), amountsList[j], assetsList[j])
151151 let updatedTransfers = (transfers :+ newTransfer)
152152 $Tuple2(updatedTransfers, (j + 1))
153153 }
154154
155155 let $t034363517 = {
156156 let $l = assetsList
157157 let $s = size($l)
158158 let $acc0 = $Tuple2(nil, 0)
159159 func $f0_1 ($a,$i) = if (($i >= $s))
160160 then $a
161161 else addNewTransfer($a, $l[$i])
162162
163163 func $f0_2 ($a,$i) = if (($i >= $s))
164164 then $a
165165 else throw("List size exceeds 10")
166166
167167 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
168168 }
169169 let assetsTransfers = $t034363517._1
170170 let _lastIndex = $t034363517._2
171171 $Tuple2(assetsTransfers, unit)
172172 }
173173 else throwErr("not allowed")
174174
175175
176176
177177 @Callable(i)
178178 func transferWaves (recipientBytes,amount) = if (if (!(shutdown))
179179 then mustCalculator(i)
180180 else false)
181181 then $Tuple2([ScriptTransfer(Address(recipientBytes), amount, unit)], amount)
182182 else throwErr("not allowed")
183183
184184
185185
186186 @Callable(i)
187187 func call (function,args) = {
188188 let cleanPayments = if ((i.callerPublicKey == base58'11111111111111111111111111111111'))
189189 then nil
190190 else i.payments
191191 let result = reentrantInvoke(calculatorAddress, function, [i.callerPublicKey, args], cleanPayments)
192192 $Tuple2(nil, result)
193193 }
194194
195195
196196
197197 @Callable(i)
198198 func initPoolInvoke (poolAddressString,args) = if (if (!(shutdown))
199199 then mustCalculator(i)
200200 else false)
201201 then {
202202 let convertedArgs = [args[0], args[1], args[2], args[3], parseIntValue(args[4])]
203203 $Tuple2(nil, invoke(addressFromStringValue(poolAddressString), "init", convertedArgs, i.payments))
204204 }
205205 else throwErr("not allowed")
206206
207207
208+
209+@Callable(i)
210+func notifyStatusUpdate (status) = {
211+ let result = reentrantInvoke(calculatorAddress, "notifyStatusUpdate", [i.callerPublicKey, [toString(status)]], nil)
212+ $Tuple2(nil, result)
213+ }
214+
215+

github/deemru/w8io/169f3d6 
35.12 ms