tx · 9ApoWDviDiZiFesUQkzoGc112Gw9dBdmrmx9KEohSP8F

3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6:  -0.01000000 Waves

2023.03.08 05:13 [2480499] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves

{ "type": 13, "id": "9ApoWDviDiZiFesUQkzoGc112Gw9dBdmrmx9KEohSP8F", "fee": 1000000, "feeAssetId": null, "timestamp": 1678241618164, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "31KEX2CLeSzTRq251yajHMQuwUZcoECARHhDmzZvvcMYt7rUn1k7XzPRLMqeas3uyEcVGnSeCmwf84Fc3puFdN96" ], "script": "base64:BgIgCAISBAoCCAESBAoCGBgSBAoCCAgSAwoBCBIFCgMICAgCAAxvcHRpb25zX2FkZHIJAQdBZGRyZXNzAQEaAVRBW/gr9hfqKqHLxIrx+8e7siBhMf6HIMEABHRVU0QBIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOBQFpAQ1yZWlzc3VlVG9rZW5zAgV0b2tlbghxdWFudGl0eQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFDG9wdGlvbnNfYWRkcgIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAR0ZXN0CQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCWFkbWluTGlzdAUQY2FsbGVyQWRkcmVzc1N0cgQHaXNBZG1pbgQHJG1hdGNoMAUEdGVzdAMJAAEC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mVyAwgFAWkGY2FsbGVyAMCEPQUEdFVTRAUDbmlsBQR1bml0CQACAQIVQ2FuIGJlIHVzZWQgb25seSBvbmNlAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIPRGF0YVRyYW5zYWN0aW9uBANkdHgFByRtYXRjaDAHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V52C9+tw==", "height": 2480499, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AzQ2XWazb7c7ks8zGFpFSVjku2BZkPQbhJmUDttTqyDo Next: 6y5mXHWyoT5BUa2uA45J8w2JtBUqD8Qqx1ugtK9GVtKU Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
5+
6+let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
7+
8+@Callable(i)
9+func reissueTokens (token,quantity) = {
10+ let adminList = match getString(options_addr, "admin_list") {
11+ case _: Unit =>
12+ "unset"
13+ case x: String =>
14+ x
15+ case _ =>
16+ throw("Match error")
17+ }
18+ let callerAddressStr = toString(i.caller)
19+ if ((adminList != "unset"))
20+ then {
21+ let test = getString(addressFromStringValue(adminList), callerAddressStr)
22+ let isAdmin = match test {
23+ case x: String =>
24+ x
25+ case _: Unit =>
26+ "no admin"
27+ case _ =>
28+ throw("Match error")
29+ }
30+ if ((isAdmin != "no admin"))
31+ then {
32+ let reissue = Reissue(fromBase58String(token), quantity, true)
33+ $Tuple2([reissue], unit)
34+ }
35+ else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
36+ }
37+ else throw("Unset admin list")
38+ }
39+
440
541
642 @Callable(i)
1753 throw("Match error")
1854 }
1955 func addStringEntry (accum,nextValue) = {
20- let $t0472495 = accum
21- let result = $t0472495._1
22- let j = $t0472495._2
56+ let $t015861609 = accum
57+ let result = $t015861609._1
58+ let j = $t015861609._2
2359 $Tuple2((result :+ StringEntry(opts[j], nextValue)), (j + 1))
2460 }
2561
135171 case _ =>
136172 "unset"
137173 }
138- let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
139174 if ((isKnownCaller != "unset"))
140175 then $Tuple2([StringEntry(toBase58String(i.caller.bytes), ((((name + "|") + inn) + "|") + ogrn)), ScriptTransfer(i.caller, 1000000, unit), ScriptTransfer(i.caller, 1000000, tUSD)], unit)
141176 else throw("Can be used only once")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
5+
6+let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
7+
8+@Callable(i)
9+func reissueTokens (token,quantity) = {
10+ let adminList = match getString(options_addr, "admin_list") {
11+ case _: Unit =>
12+ "unset"
13+ case x: String =>
14+ x
15+ case _ =>
16+ throw("Match error")
17+ }
18+ let callerAddressStr = toString(i.caller)
19+ if ((adminList != "unset"))
20+ then {
21+ let test = getString(addressFromStringValue(adminList), callerAddressStr)
22+ let isAdmin = match test {
23+ case x: String =>
24+ x
25+ case _: Unit =>
26+ "no admin"
27+ case _ =>
28+ throw("Match error")
29+ }
30+ if ((isAdmin != "no admin"))
31+ then {
32+ let reissue = Reissue(fromBase58String(token), quantity, true)
33+ $Tuple2([reissue], unit)
34+ }
35+ else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
36+ }
37+ else throw("Unset admin list")
38+ }
39+
440
541
642 @Callable(i)
743 func setOptions (opts,vals) = {
844 let opt_size = size(opts)
945 if ((100 >= opt_size))
1046 then {
1147 let adminList = match getString(this, "admin_list") {
1248 case _: Unit =>
1349 "unset"
1450 case x: String =>
1551 x
1652 case _ =>
1753 throw("Match error")
1854 }
1955 func addStringEntry (accum,nextValue) = {
20- let $t0472495 = accum
21- let result = $t0472495._1
22- let j = $t0472495._2
56+ let $t015861609 = accum
57+ let result = $t015861609._1
58+ let j = $t015861609._2
2359 $Tuple2((result :+ StringEntry(opts[j], nextValue)), (j + 1))
2460 }
2561
2662 let r = {
2763 let $l = vals
2864 let $s = size($l)
2965 let $acc0 = $Tuple2(nil, 0)
3066 func $f0_1 ($a,$i) = if (($i >= $s))
3167 then $a
3268 else addStringEntry($a, $l[$i])
3369
3470 func $f0_2 ($a,$i) = if (($i >= $s))
3571 then $a
3672 else throw("List size exceeds 100")
3773
3874 $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)
3975 }
4076 let callerAddressStr = toString(i.caller)
4177 if ((adminList != "unset"))
4278 then {
4379 let test = getString(addressFromStringValue(adminList), callerAddressStr)
4480 let isAdmin = match test {
4581 case x: String =>
4682 x
4783 case _: Unit =>
4884 "no admin"
4985 case _ =>
5086 throw("Match error")
5187 }
5288 func add_elm (options) = {
5389 let opt = split(options, "|")
5490 StringEntry(opt[0], opt[1])
5591 }
5692
5793 if ((isAdmin != "no admin"))
5894 then r
5995 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
6096 }
6197 else throw("Unset admin list")
6298 }
6399 else throw("The number of list elements must not exceed 100")
64100 }
65101
66102
67103
68104 @Callable(i)
69105 func setOption (variable,value) = {
70106 let adminList = match getString(this, "admin_list") {
71107 case _: Unit =>
72108 "unset"
73109 case x: String =>
74110 x
75111 case _ =>
76112 throw("Match error")
77113 }
78114 let callerAddressStr = toString(i.caller)
79115 if ((adminList != "unset"))
80116 then {
81117 let test = getString(addressFromStringValue(adminList), callerAddressStr)
82118 let isAdmin = match test {
83119 case x: String =>
84120 x
85121 case _: Unit =>
86122 "no admin"
87123 case _ =>
88124 throw("Match error")
89125 }
90126 if ((isAdmin != "no admin"))
91127 then $Tuple2([StringEntry(variable, value)], unit)
92128 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
93129 }
94130 else throw("Unset admin list")
95131 }
96132
97133
98134
99135 @Callable(i)
100136 func delOption (variable) = {
101137 let adminList = match getString(this, "admin_list") {
102138 case _: Unit =>
103139 "unset"
104140 case x: String =>
105141 x
106142 case _ =>
107143 throw("Match error")
108144 }
109145 let callerAddressStr = toString(i.caller)
110146 if ((adminList != "unset"))
111147 then {
112148 let test = getString(addressFromStringValue(adminList), callerAddressStr)
113149 let isAdmin = match test {
114150 case x: String =>
115151 x
116152 case _: Unit =>
117153 "no admin"
118154 case _ =>
119155 throw("Match error")
120156 }
121157 if ((isAdmin != "no admin"))
122158 then $Tuple2([DeleteEntry(variable)], unit)
123159 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
124160 }
125161 else throw("Unset admin list")
126162 }
127163
128164
129165
130166 @Callable(i)
131167 func regProvider (name,inn,ogrn) = {
132168 let isKnownCaller = match getString(this, toBase58String(i.caller.bytes)) {
133169 case hist: String =>
134170 hist
135171 case _ =>
136172 "unset"
137173 }
138- let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
139174 if ((isKnownCaller != "unset"))
140175 then $Tuple2([StringEntry(toBase58String(i.caller.bytes), ((((name + "|") + inn) + "|") + ogrn)), ScriptTransfer(i.caller, 1000000, unit), ScriptTransfer(i.caller, 1000000, tUSD)], unit)
141176 else throw("Can be used only once")
142177 }
143178
144179
145180 @Verifier(tx)
146181 func verify () = match tx {
147182 case dtx: DataTransaction =>
148183 false
149184 case _ =>
150185 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
151186 }
152187

github/deemru/w8io/026f985 
40.80 ms