tx · 4TgRwQ2rZ6jxcA7u1rDp4SHVvoGxomJ7qENhAs5dt3Wo

3N5TDZHiXyXByfTA47imbhEqAbzAupJR5xY:  -0.01000000 Waves

2022.11.23 00:10 [2328853] smart account 3N5TDZHiXyXByfTA47imbhEqAbzAupJR5xY > SELF 0.00000000 Waves

{ "type": 13, "id": "4TgRwQ2rZ6jxcA7u1rDp4SHVvoGxomJ7qENhAs5dt3Wo", "fee": 1000000, "feeAssetId": null, "timestamp": 1669151479999, "version": 2, "chainId": 84, "sender": "3N5TDZHiXyXByfTA47imbhEqAbzAupJR5xY", "senderPublicKey": "9rkQ1ChfNZ585cJFqVhjLk1mTNMXT93CZidHoYERtHML", "proofs": [ "4SW7PqPy5ZsJSEPeAVK94AwmyFxj4Xj1hWv7FbNbV3XBnnq7yqQCkRgQb1m89m4nXZ1JakozmECo8wQat924BELA" ], "script": "base64:BgIXCAISBAoCCAgSAwoBCBIGCgQICAEBEgAYAANTRVACAl9fAAVFTVBUWQIAAAlQUkVDSVNJT04AgICQu7rWrfANAAhERUNJTUFMUwCAwtcvAAlXRVNUX1BBUlQJAGkCBQlQUkVDSVNJT04ABQAQSWR4QXNzZXRDb250cmFjdAABABRJZHhBc3NldEJhY2tpbmdSYXRpbwACAQtrZXlBc3NldENmZwEMYmFzZUFzc2V0U3RyCQC5CQIJAMwIAgIGJXMlcyVzCQDMCAICBmNvbmZpZwkAzAgCAgVhc3NldAkAzAgCBQxiYXNlQXNzZXRTdHIFA25pbAUDU0VQAQ5rZXlJbml0aWFsaXplZAAJALkJAgkAzAgCAgIlcwkAzAgCAgtpbml0aWFsaXplZAUDbmlsBQNTRVABCGtleUFkbWluAAkAuQkCCQDMCAICAiVzCQDMCAICBWFkbWluBQNuaWwFA1NFUAEMa2V5RWFzdEFzc2V0AAkAuQkCCQDMCAICAiVzCQDMCAICCWVhc3RBc3NldAUDbmlsBQNTRVABDGtleVdlc3RBc3NldAAJALkJAgkAzAgCAgIlcwkAzAgCAgl3ZXN0QX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Q2ZnBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEEbWludAAEB3BheW1lbnQJAJEDAggFAWkIcGF5bWVudHMAAAMJAQIhPQIJAJADAQgFAWkIcGF5bWVudHMAAQkAAgECFVdyb25nIHBheW1lbnRzIGFtb3VudAQHYXNzZXRJZAQHJG1hdGNoMAgFB3BheW1lbnQHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJpZAUHJG1hdGNoMAkA2AQBBQJpZAMJAAECBQckbWF0Y2gwAgRVbml0BAV3YXZlcwUHJG1hdGNoMAIFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgQIYXNzZXRDZmcJALUJAgkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCiCAEJAQtrZXlBc3NldENmZwEFB2Fzc2V0SWQCDVVua25vd24gYXNzZXQFA1NFUAQKY29udHJhY3RJZAkAkQMCBQhhc3NldENmZwUQSWR4QXNzZXRDb250cmFjdAQMYmFja2luZ1JhdGlvCQCRAwIFCGFzc2V0Q2ZnBRRJZHhBc3NldEJhY2tpbmdSYXRpbwQBeAkAAgEJAKwCAgUKY29udHJhY3RJZAUMYmFja2luZ1JhdGlvBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5Xwznug==", "height": 2328853, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C5oyaBp1iehmgGE7G72THfrhpKjSYgMGcSgxmVkzJSCk Next: Hj4M7iET1tsJWeQy8Le2kunqrVvPf9guYdjaXza1wSCT Diff:
OldNewDifferences
8585 func G (q,r) = {
8686 let H = Address(fromBase58String(r))
8787 let I = valueOrErrorMessage(getString(H, o()), "Wrong contract id")
88- if (if ((I != "WAVES"))
88+ if (if ((q != "WAVES"))
8989 then (I != q)
9090 else false)
9191 then throw("Wrong asset id")
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 let f = 1
1515
1616 let g = 2
1717
1818 func h (i) = makeString(["%s%s%s", "config", "asset", i], a)
1919
2020
2121 func j () = makeString(["%s", "initialized"], a)
2222
2323
2424 func k () = makeString(["%s", "admin"], a)
2525
2626
2727 func l () = makeString(["%s", "eastAsset"], a)
2828
2929
3030 func m () = makeString(["%s", "westAsset"], a)
3131
3232
3333 func n () = makeString(["%s", "assetStorage"], a)
3434
3535
3636 func o () = "B_asset_id"
3737
3838
3939 func p (q,r,s,t) = makeString(["%s%s%d%d", q, r, toString(s), toString(t)], a)
4040
4141
4242 func u () = valueOrElse(getBoolean(this, j()), false)
4343
4444
4545 func v (w) = (this == w.caller)
4646
4747
4848 func x () = {
4949 let y = getString(this, k())
5050 if ($isInstanceOf(y, "String"))
5151 then {
5252 let z = y
5353 Address(fromBase58String(z))
5454 }
5555 else if ($isInstanceOf(y, "Unit"))
5656 then unit
5757 else throw("Match error")
5858 }
5959
6060
6161 func A () = getStringValue(this, l())
6262
6363
6464 func B (C) = valueOrElse(getInteger(this, C), 0)
6565
6666
6767 func D (w) = {
6868 let E = throw("permission denied")
6969 let y = x()
7070 if ($isInstanceOf(y, "Address"))
7171 then {
7272 let F = y
7373 if ((w.caller == F))
7474 then true
7575 else E
7676 }
7777 else if ($isInstanceOf(y, "Unit"))
7878 then if ((w.caller == this))
7979 then true
8080 else E
8181 else throw("Match error")
8282 }
8383
8484
8585 func G (q,r) = {
8686 let H = Address(fromBase58String(r))
8787 let I = valueOrErrorMessage(getString(H, o()), "Wrong contract id")
88- if (if ((I != "WAVES"))
88+ if (if ((q != "WAVES"))
8989 then (I != q)
9090 else false)
9191 then throw("Wrong asset id")
9292 else nil
9393 }
9494
9595
9696 func J (K) = {
9797 let y = addressFromString(K)
9898 if ($isInstanceOf(y, "Address"))
9999 then {
100100 let F = y
101101 true
102102 }
103103 else if ($isInstanceOf(y, "Unit"))
104104 then throw("Invalid address")
105105 else throw("Match error")
106106 }
107107
108108
109109 func L (M) = if (if ((M > 0))
110110 then (300 > M)
111111 else false)
112112 then true
113113 else throw("Out of range")
114114
115115
116116 @Callable(w)
117117 func initialize (N,O) = if (if (u())
118118 then v(w)
119119 else false)
120120 then throw("Not allowed")
121121 else {
122122 let P = Issue("East", "", 0, 8, true, unit, 0)
123123 let Q = calculateAssetId(P)
124124 [StringEntry(l(), toBase58String(Q)), StringEntry(m(), O), BooleanEntry(j(), true)]
125125 }
126126
127127
128128
129129 @Callable(w)
130130 func setAdmin (K) = {
131131 let R = if (if (u())
132132 then D(w)
133133 else false)
134134 then J(K)
135135 else false
136136 if ((R == R))
137137 then if (!(R))
138138 then throw("Not allowed")
139139 else [StringEntry(k(), K)]
140140 else throw("Strict value is not equal to itself.")
141141 }
142142
143143
144144
145145 @Callable(w)
146146 func adminSetAsset (q,r,s,t) = {
147147 let S = if (u())
148148 then D(w)
149149 else false
150150 if ((S == S))
151151 then if (!(S))
152152 then throw("Not allowed")
153153 else {
154154 let T = getStringValue(m())
155155 if ((T == q))
156156 then throw("West asset is not allowed")
157157 else {
158158 let U = [G(q, r), L(s), L(t)]
159159 if ((U == U))
160160 then {
161161 let V = p(q, r, s, t)
162162 [StringEntry(h(q), V)]
163163 }
164164 else throw("Strict value is not equal to itself.")
165165 }
166166 }
167167 else throw("Strict value is not equal to itself.")
168168 }
169169
170170
171171
172172 @Callable(w)
173173 func mint () = {
174174 let W = w.payments[0]
175175 if ((size(w.payments) != 1))
176176 then throw("Wrong payments amount")
177177 else {
178178 let I = {
179179 let y = W.assetId
180180 if ($isInstanceOf(y, "ByteVector"))
181181 then {
182182 let X = y
183183 toBase58String(X)
184184 }
185185 else if ($isInstanceOf(y, "Unit"))
186186 then {
187187 let Y = y
188188 "WAVES"
189189 }
190190 else throw("Match error")
191191 }
192192 let V = split(valueOrErrorMessage(getString(h(I)), "Unknown asset"), a)
193193 let H = V[f]
194194 let Z = V[g]
195195 let aa = throw((H + Z))
196196 nil
197197 }
198198 }
199199
200200
201201 @Verifier(ab)
202202 func ac () = sigVerify(ab.bodyBytes, ab.proofs[0], ab.senderPublicKey)
203203

github/deemru/w8io/026f985 
31.54 ms