tx · G7M1LU25oTuV78ygesZh9Vma3KeDGnJtSXX8BewXjGAP

3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6:  -0.01000000 Waves

2023.03.09 06:47 [2482033] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves

{ "type": 13, "id": "G7M1LU25oTuV78ygesZh9Vma3KeDGnJtSXX8BewXjGAP", "fee": 1000000, "feeAssetId": null, "timestamp": 1678333670546, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "2FTDQqtvdBTcYd4exoyK5XgWMhBzm3t6rUSXYvd3kUERhHSpeMJpgt3E6yhxXmLa5CnPgFn3quD6FWhA1RgAaU8A" ], "script": "base64:BgIqCAISAwoBARIDCgEBEgQKAggBEgQKAhgYEgQKAggIEgMKAQgSBQoDCAgIAwAMb3B0aW9uc19hZGRyCQEHQWRkcmVzcwEBGgFUQVv4K/YX6iqhy8SK8fvHu7IgYTH+hyDBAAR0UlVCASC/sjUsSP99LidkAYSZbjbP+8r3id96Io3Tx/DtrpTZmwAEdFVTRAEgqyRKarZCRuvS/ON5sGG6w65pV01SespFHKdAHRGwKQ4HAWkBEXJlaXNzdWVGb3JSZWdQcm92AQhxdWFudGl0eQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFDG9wdGlvbnNfYWRkcgIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAR0ZXN0CQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCWFkbWluTGl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U3RyaW5nBARoaXN0BQckbWF0Y2gwBQRoaXN0AgV1bnNldAMJAQIhPQIFDWlzS25vd25DYWxsZXICBXVuc2V0CQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzCQCsAgIJAKwCAgkArAICCQCsAgIFBG5hbWUCAXwFA2lubgIBfAUEb2dybgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIAwIQ9BQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgDAhD0FBHRVU0QFA25pbAUEdW5pdAkAAgECFUNhbiBiZSB1c2VkIG9ubHkgb25jZQECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACD0RhdGFUcmFuc2FjdGlvbgQDZHR4BQckbWF0Y2gwBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleclFCtE=", "height": 2482033, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Be3BEo29WKnXRfKLq5mgfk6S7zhx8zqkPFw1mwVXtkDB Next: GLRv4H2cV4qr8RCT6nyUdYX7LBwsBHei6mR4tg29uAzc Diff:
OldNewDifferences
66 let tRUB = base58'DuJUjEZJWmpFUo3bubFX8tomUVitqZZNAPuhd6KWgJNE'
77
88 let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
9+
10+@Callable(i)
11+func reissueForRegProv (quantity) = {
12+ let adminList = match getString(options_addr, "admin_list") {
13+ case _: Unit =>
14+ "unset"
15+ case x: String =>
16+ x
17+ case _ =>
18+ throw("Match error")
19+ }
20+ let callerAddressStr = toString(i.caller)
21+ if ((adminList != "unset"))
22+ then {
23+ let test = getString(addressFromStringValue(adminList), callerAddressStr)
24+ let isAdmin = match test {
25+ case x: String =>
26+ x
27+ case _: Unit =>
28+ "no admin"
29+ case _ =>
30+ throw("Match error")
31+ }
32+ if ((isAdmin != "no admin"))
33+ then {
34+ let reissue = Reissue(tUSD, quantity, true)
35+ if ((reissue == reissue))
36+ then $Tuple2([reissue, ScriptTransfer(i.caller, quantity, tRUB)], "Reissue called")
37+ else throw("Strict value is not equal to itself.")
38+ }
39+ else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
40+ }
41+ else throw("Unset admin list")
42+ }
43+
44+
945
1046 @Callable(i)
1147 func reissueForDepAddr (quantity) = {
91127 throw("Match error")
92128 }
93129 func addStringEntry (accum,nextValue) = {
94- let $t029843007 = accum
95- let result = $t029843007._1
96- let j = $t029843007._2
130+ let $t041644187 = accum
131+ let result = $t041644187._1
132+ let j = $t041644187._2
97133 $Tuple2((result :+ StringEntry(opts[j], nextValue)), (j + 1))
98134 }
99135
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'
9+
10+@Callable(i)
11+func reissueForRegProv (quantity) = {
12+ let adminList = match getString(options_addr, "admin_list") {
13+ case _: Unit =>
14+ "unset"
15+ case x: String =>
16+ x
17+ case _ =>
18+ throw("Match error")
19+ }
20+ let callerAddressStr = toString(i.caller)
21+ if ((adminList != "unset"))
22+ then {
23+ let test = getString(addressFromStringValue(adminList), callerAddressStr)
24+ let isAdmin = match test {
25+ case x: String =>
26+ x
27+ case _: Unit =>
28+ "no admin"
29+ case _ =>
30+ throw("Match error")
31+ }
32+ if ((isAdmin != "no admin"))
33+ then {
34+ let reissue = Reissue(tUSD, quantity, true)
35+ if ((reissue == reissue))
36+ then $Tuple2([reissue, ScriptTransfer(i.caller, quantity, tRUB)], "Reissue called")
37+ else throw("Strict value is not equal to itself.")
38+ }
39+ else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
40+ }
41+ else throw("Unset admin list")
42+ }
43+
44+
945
1046 @Callable(i)
1147 func reissueForDepAddr (quantity) = {
1248 let adminList = match getString(options_addr, "admin_list") {
1349 case _: Unit =>
1450 "unset"
1551 case x: String =>
1652 x
1753 case _ =>
1854 throw("Match error")
1955 }
2056 let callerAddressStr = toString(i.caller)
2157 if ((adminList != "unset"))
2258 then {
2359 let test = getString(addressFromStringValue(adminList), callerAddressStr)
2460 let isAdmin = match test {
2561 case x: String =>
2662 x
2763 case _: Unit =>
2864 "no admin"
2965 case _ =>
3066 throw("Match error")
3167 }
3268 if ((isAdmin != "no admin"))
3369 then {
3470 let reissue = Reissue(tRUB, quantity, true)
3571 if ((reissue == reissue))
3672 then $Tuple2([reissue, ScriptTransfer(i.caller, quantity, tRUB)], "Reissue called")
3773 else throw("Strict value is not equal to itself.")
3874 }
3975 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
4076 }
4177 else throw("Unset admin list")
4278 }
4379
4480
4581
4682 @Callable(i)
4783 func reissueTokens (token,quantity) = {
4884 let adminList = match getString(options_addr, "admin_list") {
4985 case _: Unit =>
5086 "unset"
5187 case x: String =>
5288 x
5389 case _ =>
5490 throw("Match error")
5591 }
5692 let callerAddressStr = toString(i.caller)
5793 if ((adminList != "unset"))
5894 then {
5995 let test = getString(addressFromStringValue(adminList), callerAddressStr)
6096 let isAdmin = match test {
6197 case x: String =>
6298 x
6399 case _: Unit =>
64100 "no admin"
65101 case _ =>
66102 throw("Match error")
67103 }
68104 if ((isAdmin != "no admin"))
69105 then {
70106 let reissue = Reissue(fromBase58String(token), quantity, true)
71107 $Tuple2([reissue], (((((((("Reissue error for param: token => " + token) + ", quantity:") + toString(quantity)) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + "."))
72108 }
73109 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
74110 }
75111 else throw("Unset admin list")
76112 }
77113
78114
79115
80116 @Callable(i)
81117 func setOptions (opts,vals) = {
82118 let opt_size = size(opts)
83119 if ((100 >= opt_size))
84120 then {
85121 let adminList = match getString(this, "admin_list") {
86122 case _: Unit =>
87123 "unset"
88124 case x: String =>
89125 x
90126 case _ =>
91127 throw("Match error")
92128 }
93129 func addStringEntry (accum,nextValue) = {
94- let $t029843007 = accum
95- let result = $t029843007._1
96- let j = $t029843007._2
130+ let $t041644187 = accum
131+ let result = $t041644187._1
132+ let j = $t041644187._2
97133 $Tuple2((result :+ StringEntry(opts[j], nextValue)), (j + 1))
98134 }
99135
100136 let r = {
101137 let $l = vals
102138 let $s = size($l)
103139 let $acc0 = $Tuple2(nil, 0)
104140 func $f0_1 ($a,$i) = if (($i >= $s))
105141 then $a
106142 else addStringEntry($a, $l[$i])
107143
108144 func $f0_2 ($a,$i) = if (($i >= $s))
109145 then $a
110146 else throw("List size exceeds 100")
111147
112148 $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)
113149 }
114150 let callerAddressStr = toString(i.caller)
115151 if ((adminList != "unset"))
116152 then {
117153 let test = getString(addressFromStringValue(adminList), callerAddressStr)
118154 let isAdmin = match test {
119155 case x: String =>
120156 x
121157 case _: Unit =>
122158 "no admin"
123159 case _ =>
124160 throw("Match error")
125161 }
126162 func add_elm (options) = {
127163 let opt = split(options, "|")
128164 StringEntry(opt[0], opt[1])
129165 }
130166
131167 if ((isAdmin != "no admin"))
132168 then r
133169 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
134170 }
135171 else throw("Unset admin list")
136172 }
137173 else throw("The number of list elements must not exceed 100")
138174 }
139175
140176
141177
142178 @Callable(i)
143179 func setOption (variable,value) = {
144180 let adminList = match getString(this, "admin_list") {
145181 case _: Unit =>
146182 "unset"
147183 case x: String =>
148184 x
149185 case _ =>
150186 throw("Match error")
151187 }
152188 let callerAddressStr = toString(i.caller)
153189 if ((adminList != "unset"))
154190 then {
155191 let test = getString(addressFromStringValue(adminList), callerAddressStr)
156192 let isAdmin = match test {
157193 case x: String =>
158194 x
159195 case _: Unit =>
160196 "no admin"
161197 case _ =>
162198 throw("Match error")
163199 }
164200 if ((isAdmin != "no admin"))
165201 then $Tuple2([StringEntry(variable, value)], unit)
166202 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
167203 }
168204 else throw("Unset admin list")
169205 }
170206
171207
172208
173209 @Callable(i)
174210 func delOption (variable) = {
175211 let adminList = match getString(this, "admin_list") {
176212 case _: Unit =>
177213 "unset"
178214 case x: String =>
179215 x
180216 case _ =>
181217 throw("Match error")
182218 }
183219 let callerAddressStr = toString(i.caller)
184220 if ((adminList != "unset"))
185221 then {
186222 let test = getString(addressFromStringValue(adminList), callerAddressStr)
187223 let isAdmin = match test {
188224 case x: String =>
189225 x
190226 case _: Unit =>
191227 "no admin"
192228 case _ =>
193229 throw("Match error")
194230 }
195231 if ((isAdmin != "no admin"))
196232 then $Tuple2([DeleteEntry(variable)], unit)
197233 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
198234 }
199235 else throw("Unset admin list")
200236 }
201237
202238
203239
204240 @Callable(i)
205241 func regProvider (name,inn,ogrn) = {
206242 let isKnownCaller = match getString(this, toBase58String(i.caller.bytes)) {
207243 case hist: String =>
208244 hist
209245 case _ =>
210246 "unset"
211247 }
212248 if ((isKnownCaller != "unset"))
213249 then $Tuple2([StringEntry(toBase58String(i.caller.bytes), ((((name + "|") + inn) + "|") + ogrn)), ScriptTransfer(i.caller, 1000000, unit), ScriptTransfer(i.caller, 1000000, tUSD)], unit)
214250 else throw("Can be used only once")
215251 }
216252
217253
218254 @Verifier(tx)
219255 func verify () = match tx {
220256 case dtx: DataTransaction =>
221257 false
222258 case _ =>
223259 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
224260 }
225261

github/deemru/w8io/169f3d6 
52.06 ms