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:BgIaCAISBAoCGBgSBAoCCAgSAwoBCBIFCgMICAgABAFpAQpzZXRPcHRpb25zAgRvcHRzBHZhbHMECG9wdF9zaXplCQCQAwEFBG9wdHMDCQBnAgBkBQhvcHRfc2l6ZQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFBHRoaXMCCmFkbWluX2xpc3QDCQABAgUHJG1hdGNoMAIEVW5pdAIFdW5zZXQDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4CQACAQILTWF0Y2ggZXJyb3IKAQ5hZGRTdHJpbmdFbnRyeQIFYWNjdW0JbmV4dFZhbHVlBAkkdDA0NzI0OTUFBWFjY3VtBAZyZXN1bHQIBQkkdDA0NzI0OTUCXzEEAWoIBQkkdDA0NzI0OTUCXzIJAJQKAgkAzQgCBQZyZXN1bHQJAQtTdHJpbmdFbnRyeQIJAJEDAgUEb3B0cwUBagUJbmV4dFZhbHVlCQBkAgUBagABBAFyCgACJGwFBHZhbHMKAAIkcwkAkAMBBQIkbAoABSRhY2MwCQCUCgIFA25pbAAACgEFJGYwXzECAiRhAiRp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5hbWUCAXwFA2lubgIBfAUEb2dybgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIAwIQ9BQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgDAhD0FBHRVU0QFA25pbAUEdW5pdAkAAgECFUNhbiBiZSB1c2VkIG9ubHkgb25jZQECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACD0RhdGFUcmFuc2FjdGlvbgQDZHR4BQckbWF0Y2gwBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlefHDy7Q=", "height": 2432465, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9C1EmqdgC2hxdpLqhEChhjySRCMLUyNeRuSjxmxRj9yU Next: 9ApoWDviDiZiFesUQkzoGc112Gw9dBdmrmx9KEohSP8F Diff:
OldNewDifferences
144144
145145 @Verifier(tx)
146146 func verify () = match tx {
147+ case dtx: DataTransaction =>
148+ false
147149 case _ =>
148150 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
149151 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func setOptions (opts,vals) = {
88 let opt_size = size(opts)
99 if ((100 >= opt_size))
1010 then {
1111 let adminList = match getString(this, "admin_list") {
1212 case _: Unit =>
1313 "unset"
1414 case x: String =>
1515 x
1616 case _ =>
1717 throw("Match error")
1818 }
1919 func addStringEntry (accum,nextValue) = {
2020 let $t0472495 = accum
2121 let result = $t0472495._1
2222 let j = $t0472495._2
2323 $Tuple2((result :+ StringEntry(opts[j], nextValue)), (j + 1))
2424 }
2525
2626 let r = {
2727 let $l = vals
2828 let $s = size($l)
2929 let $acc0 = $Tuple2(nil, 0)
3030 func $f0_1 ($a,$i) = if (($i >= $s))
3131 then $a
3232 else addStringEntry($a, $l[$i])
3333
3434 func $f0_2 ($a,$i) = if (($i >= $s))
3535 then $a
3636 else throw("List size exceeds 100")
3737
3838 $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)
3939 }
4040 let callerAddressStr = toString(i.caller)
4141 if ((adminList != "unset"))
4242 then {
4343 let test = getString(addressFromStringValue(adminList), callerAddressStr)
4444 let isAdmin = match test {
4545 case x: String =>
4646 x
4747 case _: Unit =>
4848 "no admin"
4949 case _ =>
5050 throw("Match error")
5151 }
5252 func add_elm (options) = {
5353 let opt = split(options, "|")
5454 StringEntry(opt[0], opt[1])
5555 }
5656
5757 if ((isAdmin != "no admin"))
5858 then r
5959 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
6060 }
6161 else throw("Unset admin list")
6262 }
6363 else throw("The number of list elements must not exceed 100")
6464 }
6565
6666
6767
6868 @Callable(i)
6969 func setOption (variable,value) = {
7070 let adminList = match getString(this, "admin_list") {
7171 case _: Unit =>
7272 "unset"
7373 case x: String =>
7474 x
7575 case _ =>
7676 throw("Match error")
7777 }
7878 let callerAddressStr = toString(i.caller)
7979 if ((adminList != "unset"))
8080 then {
8181 let test = getString(addressFromStringValue(adminList), callerAddressStr)
8282 let isAdmin = match test {
8383 case x: String =>
8484 x
8585 case _: Unit =>
8686 "no admin"
8787 case _ =>
8888 throw("Match error")
8989 }
9090 if ((isAdmin != "no admin"))
9191 then $Tuple2([StringEntry(variable, value)], unit)
9292 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
9393 }
9494 else throw("Unset admin list")
9595 }
9696
9797
9898
9999 @Callable(i)
100100 func delOption (variable) = {
101101 let adminList = match getString(this, "admin_list") {
102102 case _: Unit =>
103103 "unset"
104104 case x: String =>
105105 x
106106 case _ =>
107107 throw("Match error")
108108 }
109109 let callerAddressStr = toString(i.caller)
110110 if ((adminList != "unset"))
111111 then {
112112 let test = getString(addressFromStringValue(adminList), callerAddressStr)
113113 let isAdmin = match test {
114114 case x: String =>
115115 x
116116 case _: Unit =>
117117 "no admin"
118118 case _ =>
119119 throw("Match error")
120120 }
121121 if ((isAdmin != "no admin"))
122122 then $Tuple2([DeleteEntry(variable)], unit)
123123 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
124124 }
125125 else throw("Unset admin list")
126126 }
127127
128128
129129
130130 @Callable(i)
131131 func regProvider (name,inn,ogrn) = {
132132 let isKnownCaller = match getString(this, toBase58String(i.caller.bytes)) {
133133 case hist: String =>
134134 hist
135135 case _ =>
136136 "unset"
137137 }
138138 let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
139139 if ((isKnownCaller != "unset"))
140140 then $Tuple2([StringEntry(toBase58String(i.caller.bytes), ((((name + "|") + inn) + "|") + ogrn)), ScriptTransfer(i.caller, 1000000, unit), ScriptTransfer(i.caller, 1000000, tUSD)], unit)
141141 else throw("Can be used only once")
142142 }
143143
144144
145145 @Verifier(tx)
146146 func verify () = match tx {
147+ case dtx: DataTransaction =>
148+ false
147149 case _ =>
148150 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
149151 }
150152

github/deemru/w8io/026f985 
30.45 ms