tx · AzQ2XWazb7c7ks8zGFpFSVjku2BZkPQbhJmUDttTqyDo 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves 2023.02.02 23:24 [2432465] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{ "type": 13, "id": "AzQ2XWazb7c7ks8zGFpFSVjku2BZkPQbhJmUDttTqyDo", "fee": 1000000, "feeAssetId": null, "timestamp": 1675369495739, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "3nagNDqsnGLqhQrqPrryz7KTXgHKWMaLiUT83AhofD1G33vC9PyxapocAsSeKo8tdGneE7cVMLASuDgPn9cDEt22" ], "script": "base64:BgIaCAISBAoCGBgSBAoCCAgSAwoBCBIFCgMICAgABAFpAQpzZXRPcHRpb25zAgRvcHRzBHZhbHMECG9wdF9zaXplCQCQAwEFBG9wdHMDCQBnAgBkBQhvcHRfc2l6ZQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFBHRoaXMCCmFkbWluX2xpc3QDCQABAgUHJG1hdGNoMAIEVW5pdAIFdW5zZXQDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4CQACAQILTWF0Y2ggZXJyb3IKAQ5hZGRTdHJpbmdFbnRyeQIFYWNjdW0JbmV4dFZhbHVlBAkkdDA0NzI0OTUFBWFjY3VtBAZyZXN1bHQIBQkkdDA0NzI0OTUCXzEEAWoIBQkkdDA0NzI0OTUCXzIJAJQKAgkAzQgCBQZyZXN1bHQJAQtTdHJpbmdFbnRyeQIJAJEDAgUEb3B0cwUBagUJbmV4dFZhbHVlCQBkAgUBagABBAFyCgACJGwFBHZhbHMKAAIkcwkAkAMBBQIkbAoABSRhY2MwCQCUCgIFA25pbAAACgEFJGYwXzECAiRhAiRpA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hbWUCAXwFA2lubgIBfAUEb2dybgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIAwIQ9BQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgDAhD0FBHRVU0QFA25pbAUEdW5pdAkAAgECFUNhbiBiZSB1c2VkIG9ubHkgb25jZQECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACD0RhdGFUcmFuc2FjdGlvbgQDZHR4BQckbWF0Y2gwBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlefHDy7Q=", "height": 2432465, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9C1EmqdgC2hxdpLqhEChhjySRCMLUyNeRuSjxmxRj9yU Next: 9ApoWDviDiZiFesUQkzoGc112Gw9dBdmrmx9KEohSP8F Diff:
Old | New | Differences | |
---|---|---|---|
144 | 144 | ||
145 | 145 | @Verifier(tx) | |
146 | 146 | func verify () = match tx { | |
147 | + | case dtx: DataTransaction => | |
148 | + | false | |
147 | 149 | case _ => | |
148 | 150 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
149 | 151 | } |
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(i) | |
7 | 7 | func setOptions (opts,vals) = { | |
8 | 8 | let opt_size = size(opts) | |
9 | 9 | if ((100 >= opt_size)) | |
10 | 10 | then { | |
11 | 11 | let adminList = match getString(this, "admin_list") { | |
12 | 12 | case _: Unit => | |
13 | 13 | "unset" | |
14 | 14 | case x: String => | |
15 | 15 | x | |
16 | 16 | case _ => | |
17 | 17 | throw("Match error") | |
18 | 18 | } | |
19 | 19 | func addStringEntry (accum,nextValue) = { | |
20 | 20 | let $t0472495 = accum | |
21 | 21 | let result = $t0472495._1 | |
22 | 22 | let j = $t0472495._2 | |
23 | 23 | $Tuple2((result :+ StringEntry(opts[j], nextValue)), (j + 1)) | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | let r = { | |
27 | 27 | let $l = vals | |
28 | 28 | let $s = size($l) | |
29 | 29 | let $acc0 = $Tuple2(nil, 0) | |
30 | 30 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
31 | 31 | then $a | |
32 | 32 | else addStringEntry($a, $l[$i]) | |
33 | 33 | ||
34 | 34 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
35 | 35 | then $a | |
36 | 36 | else throw("List size exceeds 100") | |
37 | 37 | ||
38 | 38 | $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) | |
39 | 39 | } | |
40 | 40 | let callerAddressStr = toString(i.caller) | |
41 | 41 | if ((adminList != "unset")) | |
42 | 42 | then { | |
43 | 43 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
44 | 44 | let isAdmin = match test { | |
45 | 45 | case x: String => | |
46 | 46 | x | |
47 | 47 | case _: Unit => | |
48 | 48 | "no admin" | |
49 | 49 | case _ => | |
50 | 50 | throw("Match error") | |
51 | 51 | } | |
52 | 52 | func add_elm (options) = { | |
53 | 53 | let opt = split(options, "|") | |
54 | 54 | StringEntry(opt[0], opt[1]) | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | if ((isAdmin != "no admin")) | |
58 | 58 | then r | |
59 | 59 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
60 | 60 | } | |
61 | 61 | else throw("Unset admin list") | |
62 | 62 | } | |
63 | 63 | else throw("The number of list elements must not exceed 100") | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | ||
68 | 68 | @Callable(i) | |
69 | 69 | func setOption (variable,value) = { | |
70 | 70 | let adminList = match getString(this, "admin_list") { | |
71 | 71 | case _: Unit => | |
72 | 72 | "unset" | |
73 | 73 | case x: String => | |
74 | 74 | x | |
75 | 75 | case _ => | |
76 | 76 | throw("Match error") | |
77 | 77 | } | |
78 | 78 | let callerAddressStr = toString(i.caller) | |
79 | 79 | if ((adminList != "unset")) | |
80 | 80 | then { | |
81 | 81 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
82 | 82 | let isAdmin = match test { | |
83 | 83 | case x: String => | |
84 | 84 | x | |
85 | 85 | case _: Unit => | |
86 | 86 | "no admin" | |
87 | 87 | case _ => | |
88 | 88 | throw("Match error") | |
89 | 89 | } | |
90 | 90 | if ((isAdmin != "no admin")) | |
91 | 91 | then $Tuple2([StringEntry(variable, value)], unit) | |
92 | 92 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
93 | 93 | } | |
94 | 94 | else throw("Unset admin list") | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(i) | |
100 | 100 | func delOption (variable) = { | |
101 | 101 | let adminList = match getString(this, "admin_list") { | |
102 | 102 | case _: Unit => | |
103 | 103 | "unset" | |
104 | 104 | case x: String => | |
105 | 105 | x | |
106 | 106 | case _ => | |
107 | 107 | throw("Match error") | |
108 | 108 | } | |
109 | 109 | let callerAddressStr = toString(i.caller) | |
110 | 110 | if ((adminList != "unset")) | |
111 | 111 | then { | |
112 | 112 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
113 | 113 | let isAdmin = match test { | |
114 | 114 | case x: String => | |
115 | 115 | x | |
116 | 116 | case _: Unit => | |
117 | 117 | "no admin" | |
118 | 118 | case _ => | |
119 | 119 | throw("Match error") | |
120 | 120 | } | |
121 | 121 | if ((isAdmin != "no admin")) | |
122 | 122 | then $Tuple2([DeleteEntry(variable)], unit) | |
123 | 123 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
124 | 124 | } | |
125 | 125 | else throw("Unset admin list") | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | ||
130 | 130 | @Callable(i) | |
131 | 131 | func regProvider (name,inn,ogrn) = { | |
132 | 132 | let isKnownCaller = match getString(this, toBase58String(i.caller.bytes)) { | |
133 | 133 | case hist: String => | |
134 | 134 | hist | |
135 | 135 | case _ => | |
136 | 136 | "unset" | |
137 | 137 | } | |
138 | 138 | let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
139 | 139 | if ((isKnownCaller != "unset")) | |
140 | 140 | then $Tuple2([StringEntry(toBase58String(i.caller.bytes), ((((name + "|") + inn) + "|") + ogrn)), ScriptTransfer(i.caller, 1000000, unit), ScriptTransfer(i.caller, 1000000, tUSD)], unit) | |
141 | 141 | else throw("Can be used only once") | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Verifier(tx) | |
146 | 146 | func verify () = match tx { | |
147 | + | case dtx: DataTransaction => | |
148 | + | false | |
147 | 149 | case _ => | |
148 | 150 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
149 | 151 | } | |
150 | 152 |
github/deemru/w8io/026f985 30.45 ms ◑