tx · FJ5wdGWGuuvNjVReHjoq71gnpQNqmEZnCgmoJZ1iBDNz

3MwwXqqNtNyPD1U9Rov5ygG9bCUGJeJMTy2:  -0.05000000 Waves

2023.03.09 07:49 [2482097] smart account 3MwwXqqNtNyPD1U9Rov5ygG9bCUGJeJMTy2 > SELF 0.00000000 Waves

{ "type": 13, "id": "FJ5wdGWGuuvNjVReHjoq71gnpQNqmEZnCgmoJZ1iBDNz", "fee": 5000000, "feeAssetId": null, "timestamp": 1678337384214, "version": 2, "chainId": 84, "sender": "3MwwXqqNtNyPD1U9Rov5ygG9bCUGJeJMTy2", "senderPublicKey": "GCbdokkxJFr9rj5258VmEVbDP4sQVUmXoiMz5hMRXa9S", "proofs": [ "3odNaXZcETGK6dDFNUN5z7bzsRwDjcsysEMuPfsNbsveYgH6py8TfswestoynXgb6Qd4XoJkSWy7g2ytt3vbLUCC" ], "script": "base64:AAIFAAAAAAAAABkIAhIECgIYGBIECgIICBIDCgEIEgQKAggIAAAACAAAAAADd3ZzAAAAAAAF9eEAAAAAAAR1c2RzAAAAAAAAAABkAAAAAARydWJzAAAAAAAAAABkAAAAAAxkZXBvc2l0X2FkZHIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQYDlxBU2n7d7Bz7F/91r3AUYtaVUA5ffsAAAAADG9wdGlvbnNfYWRkcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVEFb+Cv2F+oqocvEivH7x7uyIGEx/ocgwQAAAAAEdFJVQgEAAAAgv7I1LEj/fS4nZAGEmW42z/vK94nfeiKN08fw7a6U2ZsAAAAABHRVU0QBAAAAIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOAAAAAAdxX3N0YXJ0CQAAaAAAAAIAAAAAAAAAJxAFAAAABHVzZHMAAAAEAAAAAWkBAAAACnNldE9wdGlvbnMAAAACAAAABG9wdHMAAAAEdmFscwQAAAAIb3B0X3NpemUJAAGQAAAAAQUAAAAEb3B0cwMJAABnAAAAAgAAAAAAAA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hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5mXNriA==", "height": 2482097, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4sG2WDvTYn8rhHwucNV71xNEdz9hpTE9CVXaxVxubtAB Next: none Diff:
OldNewDifferences
151151 }
152152 if ((isKnownCaller == "unset"))
153153 then {
154- let res = invoke(options_addr, "reissueForDepAddr", [q_start], nil)
154+ let res = invoke(options_addr, "reissueForRegProv", [q_start], nil)
155155 if ((res == res))
156156 then match res {
157157 case r: String =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let wvs = 100000000
55
66 let usds = 100
77
88 let rubs = 100
99
1010 let deposit_addr = Address(base58'3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx')
1111
1212 let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
1313
1414 let tRUB = base58'DuJUjEZJWmpFUo3bubFX8tomUVitqZZNAPuhd6KWgJNE'
1515
1616 let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
1717
1818 let q_start = (10000 * usds)
1919
2020 @Callable(i)
2121 func setOptions (opts,vals) = {
2222 let opt_size = size(opts)
2323 if ((100 >= opt_size))
2424 then {
2525 let adminList = match getString(options_addr, "admin_list") {
2626 case _: Unit =>
2727 "unset"
2828 case x: String =>
2929 x
3030 case _ =>
3131 throw("Match error")
3232 }
3333 func addStringEntry (accum,nextValue) = {
3434 let $t0824847 = accum
3535 let result = $t0824847._1
3636 let j = $t0824847._2
3737 $Tuple2((result :+ StringEntry(opts[j], nextValue)), (j + 1))
3838 }
3939
4040 let r = {
4141 let $l = vals
4242 let $s = size($l)
4343 let $acc0 = $Tuple2(nil, 0)
4444 func $f0_1 ($a,$i) = if (($i >= $s))
4545 then $a
4646 else addStringEntry($a, $l[$i])
4747
4848 func $f0_2 ($a,$i) = if (($i >= $s))
4949 then $a
5050 else throw("List size exceeds 100")
5151
5252 $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)
5353 }
5454 let callerAddressStr = toString(i.caller)
5555 if ((adminList != "unset"))
5656 then {
5757 let test = getString(addressFromStringValue(adminList), callerAddressStr)
5858 let isAdmin = match test {
5959 case x: String =>
6060 x
6161 case _: Unit =>
6262 "no admin"
6363 case _ =>
6464 throw("Match error")
6565 }
6666 func add_elm (options) = {
6767 let opt = split(options, "|")
6868 StringEntry(opt[0], opt[1])
6969 }
7070
7171 if ((isAdmin != "no admin"))
7272 then r
7373 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
7474 }
7575 else throw("Unset admin list")
7676 }
7777 else throw("The number of list elements must not exceed 100")
7878 }
7979
8080
8181
8282 @Callable(i)
8383 func setOption (variable,value) = {
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 $Tuple2([StringEntry(variable, value)], unit)
106106 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
107107 }
108108 else throw("Unset admin list")
109109 }
110110
111111
112112
113113 @Callable(i)
114114 func delOption (variable) = {
115115 let adminList = match getString(options_addr, "admin_list") {
116116 case _: Unit =>
117117 "unset"
118118 case x: String =>
119119 x
120120 case _ =>
121121 throw("Match error")
122122 }
123123 let callerAddressStr = toString(i.caller)
124124 if ((adminList != "unset"))
125125 then {
126126 let test = getString(addressFromStringValue(adminList), callerAddressStr)
127127 let isAdmin = match test {
128128 case x: String =>
129129 x
130130 case _: Unit =>
131131 "no admin"
132132 case _ =>
133133 throw("Match error")
134134 }
135135 if ((isAdmin != "no admin"))
136136 then $Tuple2([DeleteEntry(variable)], unit)
137137 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
138138 }
139139 else throw("Unset admin list")
140140 }
141141
142142
143143
144144 @Callable(i)
145145 func regProvider (provider,data) = {
146146 let isKnownCaller = match getString(this, toBase58String(i.caller.bytes)) {
147147 case hist: String =>
148148 hist
149149 case _ =>
150150 "unset"
151151 }
152152 if ((isKnownCaller == "unset"))
153153 then {
154- let res = invoke(options_addr, "reissueForDepAddr", [q_start], nil)
154+ let res = invoke(options_addr, "reissueForRegProv", [q_start], nil)
155155 if ((res == res))
156156 then match res {
157157 case r: String =>
158158 $Tuple2([StringEntry(toBase58String(i.caller.bytes), data), ScriptTransfer(i.caller, q_start, tUSD)], unit)
159159 case _ =>
160160 throw({
161161 let @ = res
162162 if ($isInstanceOf(@, "String"))
163163 then @
164164 else throw("Couldn't cast Any to String")
165165 })
166166 }
167167 else throw("Strict value is not equal to itself.")
168168 }
169169 else throw("Can be used only once")
170170 }
171171
172172
173173 @Verifier(tx)
174174 func verify () = match tx {
175175 case _ =>
176176 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
177177 }
178178

github/deemru/w8io/026f985 
35.66 ms