tx · GLRv4H2cV4qr8RCT6nyUdYX7LBwsBHei6mR4tg29uAzc

3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6:  -0.01000000 Waves

2023.03.09 07:51 [2482099] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves

{ "type": 13, "id": "GLRv4H2cV4qr8RCT6nyUdYX7LBwsBHei6mR4tg29uAzc", "fee": 1000000, "feeAssetId": null, "timestamp": 1678337529234, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "2jSUomFrPZfPZrGFDkvbUu7HG1XEmTKF2G2kuLWLC1aXbmjpzEW9ikZy1wtEgDyVgDqb6AkoYLTP6dEwmMbdizjY" ], "script": "base64:BgIqCAISAwoBARIDCgEBEgQKAggBEgQKAhgYEgQKAggIEgMKAQgSBQoDCAgIAwAMb3B0aW9uc19hZGRyCQEHQWRkcmVzcwEBGgFUQVv4K/YX6iqhy8SK8fvHu7IgYTH+hyDBAAR0UlVCASC/sjUsSP99LidkAYSZbjbP+8r3id96Io3Tx/DtrpTZmwAEdFVTRAEgqyRKarZCRuvS/ON5sGG6w65pV01SespFHKdAHRGwKQ4HAWkBEXJlaXNzdWVGb3JSZWdQcm92AQhxdWFudGl0eQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFDG9wdGlvbnNfYWRkcgIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAR0ZXN0CQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCWFkb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oMAIGU3RyaW5nBARoaXN0BQckbWF0Y2gwBQRoaXN0AgV1bnNldAMJAQIhPQIFDWlzS25vd25DYWxsZXICBXVuc2V0CQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzCQCsAgIJAKwCAgkArAICCQCsAgIFBG5hbWUCAXwFA2lubgIBfAUEb2dybgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIAwIQ9BQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgDAhD0FBHRVU0QFA25pbAUEdW5pdAkAAgECFUNhbiBiZSB1c2VkIG9ubHkgb25jZQECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACD0RhdGFUcmFuc2FjdGlvbgQDZHR4BQckbWF0Y2gwBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleX1Vnio=", "height": 2482099, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G7M1LU25oTuV78ygesZh9Vma3KeDGnJtSXX8BewXjGAP Next: none Diff:
OldNewDifferences
3333 then {
3434 let reissue = Reissue(tUSD, quantity, true)
3535 if ((reissue == reissue))
36- then $Tuple2([reissue, ScriptTransfer(i.caller, quantity, tRUB)], "Reissue called")
36+ then $Tuple2([reissue, ScriptTransfer(i.caller, quantity, tUSD)], "Reissue called")
3737 else throw("Strict value is not equal to itself.")
3838 }
3939 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
55
66 let tRUB = base58'DuJUjEZJWmpFUo3bubFX8tomUVitqZZNAPuhd6KWgJNE'
77
88 let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
99
1010 @Callable(i)
1111 func reissueForRegProv (quantity) = {
1212 let adminList = match getString(options_addr, "admin_list") {
1313 case _: Unit =>
1414 "unset"
1515 case x: String =>
1616 x
1717 case _ =>
1818 throw("Match error")
1919 }
2020 let callerAddressStr = toString(i.caller)
2121 if ((adminList != "unset"))
2222 then {
2323 let test = getString(addressFromStringValue(adminList), callerAddressStr)
2424 let isAdmin = match test {
2525 case x: String =>
2626 x
2727 case _: Unit =>
2828 "no admin"
2929 case _ =>
3030 throw("Match error")
3131 }
3232 if ((isAdmin != "no admin"))
3333 then {
3434 let reissue = Reissue(tUSD, quantity, true)
3535 if ((reissue == reissue))
36- then $Tuple2([reissue, ScriptTransfer(i.caller, quantity, tRUB)], "Reissue called")
36+ then $Tuple2([reissue, ScriptTransfer(i.caller, quantity, tUSD)], "Reissue called")
3737 else throw("Strict value is not equal to itself.")
3838 }
3939 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
4040 }
4141 else throw("Unset admin list")
4242 }
4343
4444
4545
4646 @Callable(i)
4747 func reissueForDepAddr (quantity) = {
4848 let adminList = match getString(options_addr, "admin_list") {
4949 case _: Unit =>
5050 "unset"
5151 case x: String =>
5252 x
5353 case _ =>
5454 throw("Match error")
5555 }
5656 let callerAddressStr = toString(i.caller)
5757 if ((adminList != "unset"))
5858 then {
5959 let test = getString(addressFromStringValue(adminList), callerAddressStr)
6060 let isAdmin = match test {
6161 case x: String =>
6262 x
6363 case _: Unit =>
6464 "no admin"
6565 case _ =>
6666 throw("Match error")
6767 }
6868 if ((isAdmin != "no admin"))
6969 then {
7070 let reissue = Reissue(tRUB, quantity, true)
7171 if ((reissue == reissue))
7272 then $Tuple2([reissue, ScriptTransfer(i.caller, quantity, tRUB)], "Reissue called")
7373 else throw("Strict value is not equal to itself.")
7474 }
7575 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
7676 }
7777 else throw("Unset admin list")
7878 }
7979
8080
8181
8282 @Callable(i)
8383 func reissueTokens (token,quantity) = {
8484 let adminList = match getString(options_addr, "admin_list") {
8585 case _: Unit =>
8686 "unset"
8787 case x: String =>
8888 x
8989 case _ =>
9090 throw("Match error")
9191 }
9292 let callerAddressStr = toString(i.caller)
9393 if ((adminList != "unset"))
9494 then {
9595 let test = getString(addressFromStringValue(adminList), callerAddressStr)
9696 let isAdmin = match test {
9797 case x: String =>
9898 x
9999 case _: Unit =>
100100 "no admin"
101101 case _ =>
102102 throw("Match error")
103103 }
104104 if ((isAdmin != "no admin"))
105105 then {
106106 let reissue = Reissue(fromBase58String(token), quantity, true)
107107 $Tuple2([reissue], (((((((("Reissue error for param: token => " + token) + ", quantity:") + toString(quantity)) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + "."))
108108 }
109109 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
110110 }
111111 else throw("Unset admin list")
112112 }
113113
114114
115115
116116 @Callable(i)
117117 func setOptions (opts,vals) = {
118118 let opt_size = size(opts)
119119 if ((100 >= opt_size))
120120 then {
121121 let adminList = match getString(this, "admin_list") {
122122 case _: Unit =>
123123 "unset"
124124 case x: String =>
125125 x
126126 case _ =>
127127 throw("Match error")
128128 }
129129 func addStringEntry (accum,nextValue) = {
130130 let $t041644187 = accum
131131 let result = $t041644187._1
132132 let j = $t041644187._2
133133 $Tuple2((result :+ StringEntry(opts[j], nextValue)), (j + 1))
134134 }
135135
136136 let r = {
137137 let $l = vals
138138 let $s = size($l)
139139 let $acc0 = $Tuple2(nil, 0)
140140 func $f0_1 ($a,$i) = if (($i >= $s))
141141 then $a
142142 else addStringEntry($a, $l[$i])
143143
144144 func $f0_2 ($a,$i) = if (($i >= $s))
145145 then $a
146146 else throw("List size exceeds 100")
147147
148148 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
149149 }
150150 let callerAddressStr = toString(i.caller)
151151 if ((adminList != "unset"))
152152 then {
153153 let test = getString(addressFromStringValue(adminList), callerAddressStr)
154154 let isAdmin = match test {
155155 case x: String =>
156156 x
157157 case _: Unit =>
158158 "no admin"
159159 case _ =>
160160 throw("Match error")
161161 }
162162 func add_elm (options) = {
163163 let opt = split(options, "|")
164164 StringEntry(opt[0], opt[1])
165165 }
166166
167167 if ((isAdmin != "no admin"))
168168 then r
169169 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
170170 }
171171 else throw("Unset admin list")
172172 }
173173 else throw("The number of list elements must not exceed 100")
174174 }
175175
176176
177177
178178 @Callable(i)
179179 func setOption (variable,value) = {
180180 let adminList = match getString(this, "admin_list") {
181181 case _: Unit =>
182182 "unset"
183183 case x: String =>
184184 x
185185 case _ =>
186186 throw("Match error")
187187 }
188188 let callerAddressStr = toString(i.caller)
189189 if ((adminList != "unset"))
190190 then {
191191 let test = getString(addressFromStringValue(adminList), callerAddressStr)
192192 let isAdmin = match test {
193193 case x: String =>
194194 x
195195 case _: Unit =>
196196 "no admin"
197197 case _ =>
198198 throw("Match error")
199199 }
200200 if ((isAdmin != "no admin"))
201201 then $Tuple2([StringEntry(variable, value)], unit)
202202 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
203203 }
204204 else throw("Unset admin list")
205205 }
206206
207207
208208
209209 @Callable(i)
210210 func delOption (variable) = {
211211 let adminList = match getString(this, "admin_list") {
212212 case _: Unit =>
213213 "unset"
214214 case x: String =>
215215 x
216216 case _ =>
217217 throw("Match error")
218218 }
219219 let callerAddressStr = toString(i.caller)
220220 if ((adminList != "unset"))
221221 then {
222222 let test = getString(addressFromStringValue(adminList), callerAddressStr)
223223 let isAdmin = match test {
224224 case x: String =>
225225 x
226226 case _: Unit =>
227227 "no admin"
228228 case _ =>
229229 throw("Match error")
230230 }
231231 if ((isAdmin != "no admin"))
232232 then $Tuple2([DeleteEntry(variable)], unit)
233233 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
234234 }
235235 else throw("Unset admin list")
236236 }
237237
238238
239239
240240 @Callable(i)
241241 func regProvider (name,inn,ogrn) = {
242242 let isKnownCaller = match getString(this, toBase58String(i.caller.bytes)) {
243243 case hist: String =>
244244 hist
245245 case _ =>
246246 "unset"
247247 }
248248 if ((isKnownCaller != "unset"))
249249 then $Tuple2([StringEntry(toBase58String(i.caller.bytes), ((((name + "|") + inn) + "|") + ogrn)), ScriptTransfer(i.caller, 1000000, unit), ScriptTransfer(i.caller, 1000000, tUSD)], unit)
250250 else throw("Can be used only once")
251251 }
252252
253253
254254 @Verifier(tx)
255255 func verify () = match tx {
256256 case dtx: DataTransaction =>
257257 false
258258 case _ =>
259259 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
260260 }
261261

github/deemru/w8io/169f3d6 
52.76 ms