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/vK94nfeiKN08fw7a6U2ZsAAAAABHRVU0QBAAAAIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOAAAAAAdxX3N0YXJ0CQAAaAAAAAIAAAAAAAAAJxAFAAAABHVzZHMAAAAEAAAAAWkBAAAACnNldE9wdGlvbnMAAAACAAAABG9wdHMAAAAEdmFscwQAAAAIb3B0X3NpemUJAAGQAAAAAQUAAAAEb3B0cwMJAABnAAAAAgAAAAAAAAA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dGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5mXNriA==", "height": 2482097, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4sG2WDvTYn8rhHwucNV71xNEdz9hpTE9CVXaxVxubtAB Next: none Diff:
Old | New | Differences | |
---|---|---|---|
151 | 151 | } | |
152 | 152 | if ((isKnownCaller == "unset")) | |
153 | 153 | then { | |
154 | - | let res = invoke(options_addr, " | |
154 | + | let res = invoke(options_addr, "reissueForRegProv", [q_start], nil) | |
155 | 155 | if ((res == res)) | |
156 | 156 | then match res { | |
157 | 157 | case r: String => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let wvs = 100000000 | |
5 | 5 | ||
6 | 6 | let usds = 100 | |
7 | 7 | ||
8 | 8 | let rubs = 100 | |
9 | 9 | ||
10 | 10 | let deposit_addr = Address(base58'3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx') | |
11 | 11 | ||
12 | 12 | let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6') | |
13 | 13 | ||
14 | 14 | let tRUB = base58'DuJUjEZJWmpFUo3bubFX8tomUVitqZZNAPuhd6KWgJNE' | |
15 | 15 | ||
16 | 16 | let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
17 | 17 | ||
18 | 18 | let q_start = (10000 * usds) | |
19 | 19 | ||
20 | 20 | @Callable(i) | |
21 | 21 | func setOptions (opts,vals) = { | |
22 | 22 | let opt_size = size(opts) | |
23 | 23 | if ((100 >= opt_size)) | |
24 | 24 | then { | |
25 | 25 | let adminList = match getString(options_addr, "admin_list") { | |
26 | 26 | case _: Unit => | |
27 | 27 | "unset" | |
28 | 28 | case x: String => | |
29 | 29 | x | |
30 | 30 | case _ => | |
31 | 31 | throw("Match error") | |
32 | 32 | } | |
33 | 33 | func addStringEntry (accum,nextValue) = { | |
34 | 34 | let $t0824847 = accum | |
35 | 35 | let result = $t0824847._1 | |
36 | 36 | let j = $t0824847._2 | |
37 | 37 | $Tuple2((result :+ StringEntry(opts[j], nextValue)), (j + 1)) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | let r = { | |
41 | 41 | let $l = vals | |
42 | 42 | let $s = size($l) | |
43 | 43 | let $acc0 = $Tuple2(nil, 0) | |
44 | 44 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
45 | 45 | then $a | |
46 | 46 | else addStringEntry($a, $l[$i]) | |
47 | 47 | ||
48 | 48 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
49 | 49 | then $a | |
50 | 50 | else throw("List size exceeds 100") | |
51 | 51 | ||
52 | 52 | $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) | |
53 | 53 | } | |
54 | 54 | let callerAddressStr = toString(i.caller) | |
55 | 55 | if ((adminList != "unset")) | |
56 | 56 | then { | |
57 | 57 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
58 | 58 | let isAdmin = match test { | |
59 | 59 | case x: String => | |
60 | 60 | x | |
61 | 61 | case _: Unit => | |
62 | 62 | "no admin" | |
63 | 63 | case _ => | |
64 | 64 | throw("Match error") | |
65 | 65 | } | |
66 | 66 | func add_elm (options) = { | |
67 | 67 | let opt = split(options, "|") | |
68 | 68 | StringEntry(opt[0], opt[1]) | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | if ((isAdmin != "no admin")) | |
72 | 72 | then r | |
73 | 73 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
74 | 74 | } | |
75 | 75 | else throw("Unset admin list") | |
76 | 76 | } | |
77 | 77 | else throw("The number of list elements must not exceed 100") | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | ||
82 | 82 | @Callable(i) | |
83 | 83 | func setOption (variable,value) = { | |
84 | 84 | let adminList = match getString(options_addr, "admin_list") { | |
85 | 85 | case _: Unit => | |
86 | 86 | "unset" | |
87 | 87 | case x: String => | |
88 | 88 | x | |
89 | 89 | case _ => | |
90 | 90 | throw("Match error") | |
91 | 91 | } | |
92 | 92 | let callerAddressStr = toString(i.caller) | |
93 | 93 | if ((adminList != "unset")) | |
94 | 94 | then { | |
95 | 95 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
96 | 96 | let isAdmin = match test { | |
97 | 97 | case x: String => | |
98 | 98 | x | |
99 | 99 | case _: Unit => | |
100 | 100 | "no admin" | |
101 | 101 | case _ => | |
102 | 102 | throw("Match error") | |
103 | 103 | } | |
104 | 104 | if ((isAdmin != "no admin")) | |
105 | 105 | then $Tuple2([StringEntry(variable, value)], unit) | |
106 | 106 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
107 | 107 | } | |
108 | 108 | else throw("Unset admin list") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | ||
113 | 113 | @Callable(i) | |
114 | 114 | func delOption (variable) = { | |
115 | 115 | let adminList = match getString(options_addr, "admin_list") { | |
116 | 116 | case _: Unit => | |
117 | 117 | "unset" | |
118 | 118 | case x: String => | |
119 | 119 | x | |
120 | 120 | case _ => | |
121 | 121 | throw("Match error") | |
122 | 122 | } | |
123 | 123 | let callerAddressStr = toString(i.caller) | |
124 | 124 | if ((adminList != "unset")) | |
125 | 125 | then { | |
126 | 126 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
127 | 127 | let isAdmin = match test { | |
128 | 128 | case x: String => | |
129 | 129 | x | |
130 | 130 | case _: Unit => | |
131 | 131 | "no admin" | |
132 | 132 | case _ => | |
133 | 133 | throw("Match error") | |
134 | 134 | } | |
135 | 135 | if ((isAdmin != "no admin")) | |
136 | 136 | then $Tuple2([DeleteEntry(variable)], unit) | |
137 | 137 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
138 | 138 | } | |
139 | 139 | else throw("Unset admin list") | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | ||
144 | 144 | @Callable(i) | |
145 | 145 | func regProvider (provider,data) = { | |
146 | 146 | let isKnownCaller = match getString(this, toBase58String(i.caller.bytes)) { | |
147 | 147 | case hist: String => | |
148 | 148 | hist | |
149 | 149 | case _ => | |
150 | 150 | "unset" | |
151 | 151 | } | |
152 | 152 | if ((isKnownCaller == "unset")) | |
153 | 153 | then { | |
154 | - | let res = invoke(options_addr, " | |
154 | + | let res = invoke(options_addr, "reissueForRegProv", [q_start], nil) | |
155 | 155 | if ((res == res)) | |
156 | 156 | then match res { | |
157 | 157 | case r: String => | |
158 | 158 | $Tuple2([StringEntry(toBase58String(i.caller.bytes), data), ScriptTransfer(i.caller, q_start, tUSD)], unit) | |
159 | 159 | case _ => | |
160 | 160 | throw({ | |
161 | 161 | let @ = res | |
162 | 162 | if ($isInstanceOf(@, "String")) | |
163 | 163 | then @ | |
164 | 164 | else throw("Couldn't cast Any to String") | |
165 | 165 | }) | |
166 | 166 | } | |
167 | 167 | else throw("Strict value is not equal to itself.") | |
168 | 168 | } | |
169 | 169 | else throw("Can be used only once") | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | @Verifier(tx) | |
174 | 174 | func verify () = match tx { | |
175 | 175 | case _ => | |
176 | 176 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
177 | 177 | } | |
178 | 178 |
github/deemru/w8io/026f985 48.00 ms ◑