tx · 9C1EmqdgC2hxdpLqhEChhjySRCMLUyNeRuSjxmxRj9yU 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves 2023.02.02 23:04 [2432448] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{ "type": 13, "id": "9C1EmqdgC2hxdpLqhEChhjySRCMLUyNeRuSjxmxRj9yU", "fee": 1000000, "feeAssetId": null, "timestamp": 1675368288275, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "24zWgV72YWm4v3uYf3jmhN4YWMsyrPKi6UceusNdHeY4BbcxfEaRuq373baJ7SkEq4ELNYmL1PAsqU6bCfwiXpJG" ], "script": "base64:BgIaCAISBAoCGBgSBAoCCAgSAwoBCBIFCgMICAgABAFpAQpzZXRPcHRpb25zAgRvcHRzBHZhbHMECG9wdF9zaXplCQCQAwEFBG9wdHMDCQBnAgBkBQhvcHRfc2l6ZQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFBHRoaXMCCmFkbWluX2xpc3QDCQABAgUHJG1hdGNoMAIEVW5pdAIFdW5zZXQDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4CQACAQILTWF0Y2ggZXJyb3IKAQ5hZGRTdHJpbmdFbnRyeQIFYWNjdW0JbmV4dFZhbHVlBAkkdDA0NzI0OTUFBWFjY3VtBAZyZXN1bHQIBQkkdDA0NzI0OTUCXzEEAWoIBQkkdDA0NzI0OTUCXzIJAJQKAgkAzQgCBQZyZXN1bHQJAQtTdHJpbmdFbnRyeQIJAJEDAgUEb3B0cwUBagUJbmV4dFZhbHVlCQBkAgUBagABBAFyCgACJGwFBHZhbHMKAAIkcwkAkAMBBQIkbAoABSRhY2MwCQCUCgIFA25pbAAACgEFJGYwXzECAiRh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IFBG5hbWUCAXwFA2lubgIBfAUEb2dybgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIAwIQ9BQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgDAhD0FBHRVU0QFA25pbAUEdW5pdAkAAgECFUNhbiBiZSB1c2VkIG9ubHkgb25jZQECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5QGZgNA==", "height": 2432448, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AYCfzvxLSv2wQF3GLr19GoMEScDigfMsL42Te5gnnzHQ Next: AzQ2XWazb7c7ks8zGFpFSVjku2BZkPQbhJmUDttTqyDo Diff:
Old | New | Differences | |
---|---|---|---|
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(a) | |
112 | + | func delOption (B) = { | |
113 | + | let e = { | |
114 | + | let f = getString(this, "admin_list") | |
115 | + | if ($isInstanceOf(f, "Unit")) | |
116 | + | then "unset" | |
117 | + | else if ($isInstanceOf(f, "String")) | |
118 | + | then { | |
119 | + | let g = f | |
120 | + | g | |
121 | + | } | |
122 | + | else throw("Match error") | |
123 | + | } | |
124 | + | let v = toString(a.caller) | |
125 | + | if ((e != "unset")) | |
126 | + | then { | |
127 | + | let w = getString(addressFromStringValue(e), v) | |
128 | + | let x = { | |
129 | + | let f = w | |
130 | + | if ($isInstanceOf(f, "String")) | |
131 | + | then { | |
132 | + | let g = f | |
133 | + | g | |
134 | + | } | |
135 | + | else if ($isInstanceOf(f, "Unit")) | |
136 | + | then "no admin" | |
137 | + | else throw("Match error") | |
138 | + | } | |
139 | + | if ((x != "no admin")) | |
140 | + | then $Tuple2([DeleteEntry(B)], unit) | |
141 | + | else throw((((((("You not admin: " + e) + ", isAdmin: ") + x) + ", callerAddressStr: ") + v) + ", ")) | |
142 | + | } | |
143 | + | else throw("Unset admin list") | |
144 | + | } | |
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | @Callable(a) | |
112 | 149 | func regProvider (D,E,F) = { | |
113 | 150 | let G = { | |
114 | 151 | let f = getString(this, toBase58String(a.caller.bytes)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func setOptions (b,c) = { | |
8 | 8 | let d = size(b) | |
9 | 9 | if ((100 >= d)) | |
10 | 10 | then { | |
11 | 11 | let e = { | |
12 | 12 | let f = getString(this, "admin_list") | |
13 | 13 | if ($isInstanceOf(f, "Unit")) | |
14 | 14 | then "unset" | |
15 | 15 | else if ($isInstanceOf(f, "String")) | |
16 | 16 | then { | |
17 | 17 | let g = f | |
18 | 18 | g | |
19 | 19 | } | |
20 | 20 | else throw("Match error") | |
21 | 21 | } | |
22 | 22 | func h (i,j) = { | |
23 | 23 | let k = i | |
24 | 24 | let l = k._1 | |
25 | 25 | let m = k._2 | |
26 | 26 | $Tuple2((l :+ StringEntry(b[m], j)), (m + 1)) | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | let n = { | |
30 | 30 | let o = c | |
31 | 31 | let p = size(o) | |
32 | 32 | let q = $Tuple2(nil, 0) | |
33 | 33 | func r (s,t) = if ((t >= p)) | |
34 | 34 | then s | |
35 | 35 | else h(s, o[t]) | |
36 | 36 | ||
37 | 37 | func u (s,t) = if ((t >= p)) | |
38 | 38 | then s | |
39 | 39 | else throw("List size exceeds 100") | |
40 | 40 | ||
41 | 41 | u(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(q, 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) | |
42 | 42 | } | |
43 | 43 | let v = toString(a.caller) | |
44 | 44 | if ((e != "unset")) | |
45 | 45 | then { | |
46 | 46 | let w = getString(addressFromStringValue(e), v) | |
47 | 47 | let x = { | |
48 | 48 | let f = w | |
49 | 49 | if ($isInstanceOf(f, "String")) | |
50 | 50 | then { | |
51 | 51 | let g = f | |
52 | 52 | g | |
53 | 53 | } | |
54 | 54 | else if ($isInstanceOf(f, "Unit")) | |
55 | 55 | then "no admin" | |
56 | 56 | else throw("Match error") | |
57 | 57 | } | |
58 | 58 | func y (z) = { | |
59 | 59 | let A = split(z, "|") | |
60 | 60 | StringEntry(A[0], A[1]) | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | if ((x != "no admin")) | |
64 | 64 | then n | |
65 | 65 | else throw((((((("You not admin: " + e) + ", isAdmin: ") + x) + ", callerAddressStr: ") + v) + ", ")) | |
66 | 66 | } | |
67 | 67 | else throw("Unset admin list") | |
68 | 68 | } | |
69 | 69 | else throw("The number of list elements must not exceed 100") | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | ||
74 | 74 | @Callable(a) | |
75 | 75 | func setOption (B,C) = { | |
76 | 76 | let e = { | |
77 | 77 | let f = getString(this, "admin_list") | |
78 | 78 | if ($isInstanceOf(f, "Unit")) | |
79 | 79 | then "unset" | |
80 | 80 | else if ($isInstanceOf(f, "String")) | |
81 | 81 | then { | |
82 | 82 | let g = f | |
83 | 83 | g | |
84 | 84 | } | |
85 | 85 | else throw("Match error") | |
86 | 86 | } | |
87 | 87 | let v = toString(a.caller) | |
88 | 88 | if ((e != "unset")) | |
89 | 89 | then { | |
90 | 90 | let w = getString(addressFromStringValue(e), v) | |
91 | 91 | let x = { | |
92 | 92 | let f = w | |
93 | 93 | if ($isInstanceOf(f, "String")) | |
94 | 94 | then { | |
95 | 95 | let g = f | |
96 | 96 | g | |
97 | 97 | } | |
98 | 98 | else if ($isInstanceOf(f, "Unit")) | |
99 | 99 | then "no admin" | |
100 | 100 | else throw("Match error") | |
101 | 101 | } | |
102 | 102 | if ((x != "no admin")) | |
103 | 103 | then $Tuple2([StringEntry(B, C)], unit) | |
104 | 104 | else throw((((((("You not admin: " + e) + ", isAdmin: ") + x) + ", callerAddressStr: ") + v) + ", ")) | |
105 | 105 | } | |
106 | 106 | else throw("Unset admin list") | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(a) | |
112 | + | func delOption (B) = { | |
113 | + | let e = { | |
114 | + | let f = getString(this, "admin_list") | |
115 | + | if ($isInstanceOf(f, "Unit")) | |
116 | + | then "unset" | |
117 | + | else if ($isInstanceOf(f, "String")) | |
118 | + | then { | |
119 | + | let g = f | |
120 | + | g | |
121 | + | } | |
122 | + | else throw("Match error") | |
123 | + | } | |
124 | + | let v = toString(a.caller) | |
125 | + | if ((e != "unset")) | |
126 | + | then { | |
127 | + | let w = getString(addressFromStringValue(e), v) | |
128 | + | let x = { | |
129 | + | let f = w | |
130 | + | if ($isInstanceOf(f, "String")) | |
131 | + | then { | |
132 | + | let g = f | |
133 | + | g | |
134 | + | } | |
135 | + | else if ($isInstanceOf(f, "Unit")) | |
136 | + | then "no admin" | |
137 | + | else throw("Match error") | |
138 | + | } | |
139 | + | if ((x != "no admin")) | |
140 | + | then $Tuple2([DeleteEntry(B)], unit) | |
141 | + | else throw((((((("You not admin: " + e) + ", isAdmin: ") + x) + ", callerAddressStr: ") + v) + ", ")) | |
142 | + | } | |
143 | + | else throw("Unset admin list") | |
144 | + | } | |
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | @Callable(a) | |
112 | 149 | func regProvider (D,E,F) = { | |
113 | 150 | let G = { | |
114 | 151 | let f = getString(this, toBase58String(a.caller.bytes)) | |
115 | 152 | if ($isInstanceOf(f, "String")) | |
116 | 153 | then { | |
117 | 154 | let H = f | |
118 | 155 | H | |
119 | 156 | } | |
120 | 157 | else "unset" | |
121 | 158 | } | |
122 | 159 | let I = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
123 | 160 | if ((G != "unset")) | |
124 | 161 | then $Tuple2([StringEntry(toBase58String(a.caller.bytes), ((((D + "|") + E) + "|") + F)), ScriptTransfer(a.caller, 1000000, unit), ScriptTransfer(a.caller, 1000000, I)], unit) | |
125 | 162 | else throw("Can be used only once") | |
126 | 163 | } | |
127 | 164 | ||
128 | 165 | ||
129 | 166 | @Verifier(J) | |
130 | 167 | func K () = { | |
131 | 168 | let f = J | |
132 | 169 | sigVerify(J.bodyBytes, J.proofs[0], J.senderPublicKey) | |
133 | 170 | } | |
134 | 171 |
github/deemru/w8io/169f3d6 42.37 ms ◑