tx · C5oyaBp1iehmgGE7G72THfrhpKjSYgMGcSgxmVkzJSCk

3N5TDZHiXyXByfTA47imbhEqAbzAupJR5xY:  -0.01000000 Waves

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

{ "type": 13, "id": "C5oyaBp1iehmgGE7G72THfrhpKjSYgMGcSgxmVkzJSCk", "fee": 1000000, "feeAssetId": null, "timestamp": 1669151452644, "version": 2, "chainId": 84, "sender": "3N5TDZHiXyXByfTA47imbhEqAbzAupJR5xY", "senderPublicKey": "9rkQ1ChfNZ585cJFqVhjLk1mTNMXT93CZidHoYERtHML", "proofs": [ "5WuzC6Qy5qGExrVHeQpMDEbtijxVa21rV9erp5MTXJm7Bdhg4HnGMCE2JAVEBc9ddyiHoQZxQsLduV32ULFt1rut" ], "script": "base64:BgIXCAISBAoCCAgSAwoBCBIGCgQICAEBEgAYAANTRVACAl9fAAVFTVBUWQIAAAlQUkVDSVNJT04AgICQu7rWrfANAAhERUNJTUFMUwCAwtcvAAlXRVNUX1BBUlQJAGkCBQlQUkVDSVNJT04ABQAQSWR4QXNzZXRDb250cmFjdAABABRJZHhBc3NldEJhY2tpbmdSYXRpbwACAQtrZXlBc3NldENmZwEMYmFzZUFzc2V0U3RyCQC5CQIJAMwIAgIGJXMlcyVzCQDMCAICBmNvbmZpZwkAzAgCAgVhc3NldAkAzAgCBQxiYXNlQXNzZXRTdHIFA25pbAUDU0VQAQ5rZXlJbml0aWFsaXplZAAJALkJAgkAzAgCAgIlcwkAzAgCAgtpbml0aWFsaXplZAUDbmlsBQNTRVABCGtleUFkbWluAAkAuQkCCQDMCAICAiVzCQDMCAICBWFkbWluBQNuaWwFA1NFUAEMa2V5RWFzdEFzc2V0AAkAuQkCCQDMCAICAiVzCQDMCAICCWVhc3RBc3NldAUDbmlsBQNTRVABDGtleVdlc3RBc3NldAAJALkJAgkAzAgCAgIlcwkAzAgCAgl3ZXN0QXNzZXQFA25pb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FA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQRtaW50AAQHcGF5bWVudAkAkQMCCAUBaQhwYXltZW50cwAAAwkBAiE9AgkAkAMBCAUBaQhwYXltZW50cwABCQACAQIVV3JvbmcgcGF5bWVudHMgYW1vdW50BAdhc3NldElkBAckbWF0Y2gwCAUHcGF5bWVudAdhc3NldElkAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAmlkBQckbWF0Y2gwCQDYBAEFAmlkAwkAAQIFByRtYXRjaDACBFVuaXQEBXdhdmVzBQckbWF0Y2gwAgVXQVZFUwkAAgECC01hdGNoIGVycm9yBAhhc3NldENmZwkAtQkCCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAKIIAQkBC2tleUFzc2V0Q2ZnAQUHYXNzZXRJZAINVW5rbm93biBhc3NldAUDU0VQBApjb250cmFjdElkCQCRAwIFCGFzc2V0Q2ZnBRBJZHhBc3NldENvbnRyYWN0BAxiYWNraW5nUmF0aW8JAJEDAgUIYXNzZXRDZmcFFElkeEFzc2V0QmFja2luZ1JhdGlvBAF4CQACAQkArAICBQpjb250cmFjdElkBQxiYWNraW5nUmF0aW8FA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkOcuac", "height": 2328853, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BHv9ZgHxzBHTkXFoZnTLUvbeBZPRYcVjfMRvBfdJAAjD Next: 4TgRwQ2rZ6jxcA7u1rDp4SHVvoGxomJ7qENhAs5dt3Wo 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 ((I != q))
88+ if (if ((I != "WAVES"))
89+ then (I != q)
90+ else false)
8991 then throw("Wrong asset id")
9092 else nil
9193 }
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 ((I != q))
88+ if (if ((I != "WAVES"))
89+ then (I != q)
90+ else false)
8991 then throw("Wrong asset id")
9092 else nil
9193 }
9294
9395
9496 func J (K) = {
9597 let y = addressFromString(K)
9698 if ($isInstanceOf(y, "Address"))
9799 then {
98100 let F = y
99101 true
100102 }
101103 else if ($isInstanceOf(y, "Unit"))
102104 then throw("Invalid address")
103105 else throw("Match error")
104106 }
105107
106108
107109 func L (M) = if (if ((M > 0))
108110 then (300 > M)
109111 else false)
110112 then true
111113 else throw("Out of range")
112114
113115
114116 @Callable(w)
115117 func initialize (N,O) = if (if (u())
116118 then v(w)
117119 else false)
118120 then throw("Not allowed")
119121 else {
120122 let P = Issue("East", "", 0, 8, true, unit, 0)
121123 let Q = calculateAssetId(P)
122124 [StringEntry(l(), toBase58String(Q)), StringEntry(m(), O), BooleanEntry(j(), true)]
123125 }
124126
125127
126128
127129 @Callable(w)
128130 func setAdmin (K) = {
129131 let R = if (if (u())
130132 then D(w)
131133 else false)
132134 then J(K)
133135 else false
134136 if ((R == R))
135137 then if (!(R))
136138 then throw("Not allowed")
137139 else [StringEntry(k(), K)]
138140 else throw("Strict value is not equal to itself.")
139141 }
140142
141143
142144
143145 @Callable(w)
144146 func adminSetAsset (q,r,s,t) = {
145147 let S = if (u())
146148 then D(w)
147149 else false
148150 if ((S == S))
149151 then if (!(S))
150152 then throw("Not allowed")
151153 else {
152154 let T = getStringValue(m())
153155 if ((T == q))
154156 then throw("West asset is not allowed")
155157 else {
156158 let U = [G(q, r), L(s), L(t)]
157159 if ((U == U))
158160 then {
159161 let V = p(q, r, s, t)
160162 [StringEntry(h(q), V)]
161163 }
162164 else throw("Strict value is not equal to itself.")
163165 }
164166 }
165167 else throw("Strict value is not equal to itself.")
166168 }
167169
168170
169171
170172 @Callable(w)
171173 func mint () = {
172174 let W = w.payments[0]
173175 if ((size(w.payments) != 1))
174176 then throw("Wrong payments amount")
175177 else {
176178 let I = {
177179 let y = W.assetId
178180 if ($isInstanceOf(y, "ByteVector"))
179181 then {
180182 let X = y
181183 toBase58String(X)
182184 }
183185 else if ($isInstanceOf(y, "Unit"))
184186 then {
185187 let Y = y
186188 "WAVES"
187189 }
188190 else throw("Match error")
189191 }
190192 let V = split(valueOrErrorMessage(getString(h(I)), "Unknown asset"), a)
191193 let H = V[f]
192194 let Z = V[g]
193195 let aa = throw((H + Z))
194196 nil
195197 }
196198 }
197199
198200
199201 @Verifier(ab)
200202 func ac () = sigVerify(ab.bodyBytes, ab.proofs[0], ab.senderPublicKey)
201203

github/deemru/w8io/169f3d6 
24.68 ms