tx · 9PwexppAvEuzWqshMVjCXUg6mhJG49fn6UtqMGh2tYJo

3N5TDZHiXyXByfTA47imbhEqAbzAupJR5xY:  -0.01000000 Waves

2022.11.22 21:42 [2328694] smart account 3N5TDZHiXyXByfTA47imbhEqAbzAupJR5xY > SELF 0.00000000 Waves

{ "type": 13, "id": "9PwexppAvEuzWqshMVjCXUg6mhJG49fn6UtqMGh2tYJo", "fee": 1000000, "feeAssetId": null, "timestamp": 1669142546629, "version": 2, "chainId": 84, "sender": "3N5TDZHiXyXByfTA47imbhEqAbzAupJR5xY", "senderPublicKey": "9rkQ1ChfNZ585cJFqVhjLk1mTNMXT93CZidHoYERtHML", "proofs": [ "YViiGutBmSqCoh3QR2mqVL8LDTCztzMjD4Av7m448acG4xs3dKCn6gn6D8FwhDRT57gYPFdbjUJ6KBWwh1Yvavb" ], "script": "base64:BgIaCAISBAoCCAgSAwoBCBIDCgEIEgYKBAgIAQEUAANTRVACAl9fAAVFTVBUWQIAAAlQUkVDSVNJT04AgICQu7rWrfANAAhERUNJTUFMUwCAwtcvAAlXRVNUX1BBUlQJAGkCBQlQUkVDSVNJT04ABQELa2V5QXNzZXRDZmcBDGJhc2VBc3NldFN0cgkAuQkCCQDMCAICBiVzJXMlcwkAzAgCAgZjb25maWcJAMwIAgIFYXNzZXQJAMwIAgUMYmFzZUFzc2V0U3RyBQNuaWwFA1NFUAEOa2V5SW5pdGlhbGl6ZWQACQC5CQIJAMwIAgICJXMJAMwIAgILaW5pdGlhbGl6ZWQFA25pbAUDU0VQAQhrZXlBZG1pbgAJALkJAgkAzAgCAgIlcwkAzAgCAgVhZG1pbgUDbmlsBQNTRVABDGtleUVhc3RBc3NldAAJALkJAgkAzAgCAgIlcwkAzAgCAgllYXN0QXNzZXQFA25pbAUDU0VQAQxrZXlXZXN0QXNzZXQACQC5CQIJAMwIAgICJXMJAMwIAgIJd2VzdEFzc2V0BQNuaWwFA1NFUAEPa2V5QXNzZXRTdG9yYWdlAAkAuQkCCQDMCAIC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ZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkK0nU4", "height": 2328694, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6a7JYocrJow4W7uQF54hFEMez5X5kmbhosamSNeCSw5N Next: 4RVNdkzG28UGL3SwiGqBYrZa5S4U29cumRBA6mhp97zh Diff:
OldNewDifferences
105105
106106
107107 @Callable(u)
108-func setAdmin (M) = [StringEntry(i(), M)]
108+func setAdmin (M) = {
109+ let N = Address(fromBase58String(M))
110+ if ((N == N))
111+ then [StringEntry(i(), M)]
112+ else throw("Strict value is not equal to itself.")
113+ }
109114
110115
111116
112117 @Callable(u)
113118 func adminSetAssetStorage (M) = {
114- let N = if (s())
119+ let O = if (s())
115120 then A(u)
116121 else false
117- if ((N == N))
118- then if (!(N))
122+ if ((O == O))
123+ then if (!(O))
119124 then throw("Not allowed")
120125 else [StringEntry(l(), M)]
121126 else throw("Strict value is not equal to itself.")
125130
126131 @Callable(u)
127132 func adminSetAsset (p,o,q,r) = {
128- let O = if (s())
133+ let P = if (s())
129134 then A(u)
130135 else false
131- if ((O == O))
132- then if (!(O))
136+ if ((P == P))
137+ then if (!(P))
133138 then throw("Not allowed")
134139 else {
135- let P = getStringValue(k())
136- if ((P == p))
140+ let Q = getStringValue(k())
141+ if ((Q == p))
137142 then throw("West asset is not allowed")
138143 else {
139- let Q = [D(p, o), G(q), G(r)]
140- if ((Q == Q))
144+ let R = [D(p, o), G(q), G(r)]
145+ if ((R == R))
141146 then {
142- let R = n(o, p, q, r)
143-[StringEntry(f(p), R)]
147+ let S = n(o, p, q, r)
148+[StringEntry(f(p), S)]
144149 }
145150 else throw("Strict value is not equal to itself.")
146151 }
149154 }
150155
151156
152-@Verifier(S)
153-func T () = sigVerify(S.bodyBytes, S.proofs[0], S.senderPublicKey)
157+@Verifier(T)
158+func U () = sigVerify(T.bodyBytes, T.proofs[0], T.senderPublicKey)
154159
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = ""
77
88 let c = 1000000000000000000
99
1010 let d = 100000000
1111
1212 let e = (c / 5)
1313
1414 func f (g) = makeString(["%s%s%s", "config", "asset", g], a)
1515
1616
1717 func h () = makeString(["%s", "initialized"], a)
1818
1919
2020 func i () = makeString(["%s", "admin"], a)
2121
2222
2323 func j () = makeString(["%s", "eastAsset"], a)
2424
2525
2626 func k () = makeString(["%s", "westAsset"], a)
2727
2828
2929 func l () = makeString(["%s", "assetStorage"], a)
3030
3131
3232 func m () = "B_asset_id"
3333
3434
3535 func n (o,p,q,r) = makeString(["%s%s%d%d", o, p, toString(q), toString(r)], a)
3636
3737
3838 func s () = valueOrElse(getBoolean(this, h()), false)
3939
4040
4141 func t (u) = (this == u.caller)
4242
4343
4444 func v () = {
4545 let w = getString(this, i())
4646 if ($isInstanceOf(w, "String"))
4747 then {
4848 let x = w
4949 Address(fromBase58String(x))
5050 }
5151 else if ($isInstanceOf(w, "Unit"))
5252 then unit
5353 else throw("Match error")
5454 }
5555
5656
5757 func y (z) = valueOrElse(getInteger(this, z), 0)
5858
5959
6060 func A (u) = {
6161 let B = throw("permission denied")
6262 let w = v()
6363 if ($isInstanceOf(w, "Address"))
6464 then {
6565 let C = w
6666 if ((u.caller == C))
6767 then true
6868 else B
6969 }
7070 else if ($isInstanceOf(w, "Unit"))
7171 then if ((u.caller == this))
7272 then true
7373 else B
7474 else throw("Match error")
7575 }
7676
7777
7878 func D (p,o) = {
7979 let E = Address(fromBase58String(o))
8080 let F = valueOrErrorMessage(getString(E, m()), "Wrong contract id")
8181 if ((F != p))
8282 then throw("Wrong asset id")
8383 else nil
8484 }
8585
8686
8787 func G (H) = if (if ((H > 0))
8888 then (300 > H)
8989 else false)
9090 then true
9191 else throw("Out of range")
9292
9393
9494 @Callable(u)
9595 func initialize (I,J) = if (if (s())
9696 then t(u)
9797 else false)
9898 then throw("Not allowed")
9999 else {
100100 let K = Issue("East", "", 0, 8, true, unit, 0)
101101 let L = calculateAssetId(K)
102102 [StringEntry(j(), toBase58String(L)), StringEntry(k(), J), BooleanEntry(h(), true)]
103103 }
104104
105105
106106
107107 @Callable(u)
108-func setAdmin (M) = [StringEntry(i(), M)]
108+func setAdmin (M) = {
109+ let N = Address(fromBase58String(M))
110+ if ((N == N))
111+ then [StringEntry(i(), M)]
112+ else throw("Strict value is not equal to itself.")
113+ }
109114
110115
111116
112117 @Callable(u)
113118 func adminSetAssetStorage (M) = {
114- let N = if (s())
119+ let O = if (s())
115120 then A(u)
116121 else false
117- if ((N == N))
118- then if (!(N))
122+ if ((O == O))
123+ then if (!(O))
119124 then throw("Not allowed")
120125 else [StringEntry(l(), M)]
121126 else throw("Strict value is not equal to itself.")
122127 }
123128
124129
125130
126131 @Callable(u)
127132 func adminSetAsset (p,o,q,r) = {
128- let O = if (s())
133+ let P = if (s())
129134 then A(u)
130135 else false
131- if ((O == O))
132- then if (!(O))
136+ if ((P == P))
137+ then if (!(P))
133138 then throw("Not allowed")
134139 else {
135- let P = getStringValue(k())
136- if ((P == p))
140+ let Q = getStringValue(k())
141+ if ((Q == p))
137142 then throw("West asset is not allowed")
138143 else {
139- let Q = [D(p, o), G(q), G(r)]
140- if ((Q == Q))
144+ let R = [D(p, o), G(q), G(r)]
145+ if ((R == R))
141146 then {
142- let R = n(o, p, q, r)
143-[StringEntry(f(p), R)]
147+ let S = n(o, p, q, r)
148+[StringEntry(f(p), S)]
144149 }
145150 else throw("Strict value is not equal to itself.")
146151 }
147152 }
148153 else throw("Strict value is not equal to itself.")
149154 }
150155
151156
152-@Verifier(S)
153-func T () = sigVerify(S.bodyBytes, S.proofs[0], S.senderPublicKey)
157+@Verifier(T)
158+func U () = sigVerify(T.bodyBytes, T.proofs[0], T.senderPublicKey)
154159

github/deemru/w8io/026f985 
32.72 ms