tx · 3FbWH3uXFfJfZ4Cq8dhGMVwnpb2NjP24k7GpMwp4eq2H

3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb:  -0.01000000 Waves

2022.05.09 14:14 [2044067] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves

{ "type": 13, "id": "3FbWH3uXFfJfZ4Cq8dhGMVwnpb2NjP24k7GpMwp4eq2H", "fee": 1000000, "feeAssetId": null, "timestamp": 1652094876007, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "4PGVZsxDawrZqnLzxbTvbr3eY3ZYHAXVqPVACdj7gxFn7LKgK5311BD6565YU43173ZAwHEQ9ZZ587dM7WnEQw8R" ], "script": "base64:AAIFAAAAAAAAABsIAhIDCgEIEgQKAggIEgUKAwgICBIFCgMICAgAAAASAAAAAApzaGlueXdnZ2lkAQAAACCJac8C/7a6udRxltd5uJl2JrB00Hd59HNuhvD0c58GJgAAAAAPdHJlYXN1cnlBZGRyZXNzAQAAABoBVGX48BYLBMBZQnAankiMl/9+3Bxi8t27/QAAAAAObmF0aW9uc0FkZHJlc3MBAAAAGgFUTYXo3vT4RGtZEDtwX8O3uWUOUfVERm2gAAAAAAxhZG1pbkFkZHJlc3MJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AAAAAAxCdWlsZFN0YXJ0ZWQCAAAADUJVSUxEX1NUQVJURUQAAAAADUJ1aWxkRmluaXNoZWQCAAAADkJVSUxEX0ZJTklTSEVEAAAAAAZBc3NldHMJAARMAAAAAgIAAAAEQ2l0eQkABEwAAAACAgAAAAdCYXJyYWNrCQAETAAAAAICAAAABEJhcm4JAARMAAAAAgIAAAAHV2FycmlvcgUAAAADbmlsAAAAAAphc3NldHN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FAAAAB3JlZkNhbGwEAAAADGN1cnJlbnRQb3dlcgkBAAAAFG5hdGlvbnNUcnlHZXRJbnRlZ2VyAAAAAQkAASwAAAACBQAAAAhvbGRPd25lcgIAAAAGX1Bvd2VyBAAAAAphc3NldFBvd2VyCQABkQAAAAIFAAAAC2Fzc2V0c1Bvd2VyCQEAAAAFdmFsdWUAAAABCQAETwAAAAIFAAAABkFzc2V0cwUAAAAMc3RyQXNzZXRUeXBlBAAAAAJwdwkAA/wAAAAECQEAAAAHQWRkcmVzcwAAAAEFAAAADm5hdGlvbnNBZGRyZXNzAgAAAAxzZXRVc2VyUG93ZXIJAARMAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIJAARMAAAAAgkAAGUAAAACBQAAAAxjdXJyZW50UG93ZXIFAAAACmFzc2V0UG93ZXIFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAJwdwUAAAACcHcEAAAAByRtYXRjaDAFAAAAAnB3AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXIFAAAAByRtYXRjaDAJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAF0luY29ycmVjdCBpbnZva2UgcmVzdWx0CQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAA+5eq7Q==", "height": 2044067, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: g3Dd2f2ZZCDGw1ix8aktZ5VepAfgPmG9fn2EwoVwoZv Next: GX59dphnSvfR1FTR8GnqV7WdQZd7Woorv3s1ECAMdiLi Diff:
OldNewDifferences
127127 let R = invoke(Address(b), "Pay", [toString(y.caller), Q], nil)
128128 if ((R == R))
129129 then {
130- let S = o(toString(y.caller))
130+ let S = o((toString(y.caller) + "_Power"))
131131 let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S + P)], nil)
132132 if ((E == E))
133133 then {
159159 let S = o(V)
160160 let P = j[value(indexOf(g, z))]
161161 let E = invoke(Address(c), "setUserPower", [V, (S - P)], nil)
162- if ((E != (S - P)))
163- then throw("Incorrect invoke result")
164- else {
165- let W = o(U)
166- let X = invoke(Address(c), "setUserPower", [U, (S + P)], nil)
167- let m = X
168- if ($isInstanceOf(m, "Int"))
169- then {
170- let F = m
162+ if ((E == E))
163+ then if ((E != (S - P)))
164+ then throw("Incorrect invoke result")
165+ else {
166+ let W = o((U + "_Power"))
167+ let X = invoke(Address(c), "setUserPower", [U, (S + P)], nil)
168+ if ((X == X))
169+ then {
170+ let m = X
171+ if ($isInstanceOf(m, "Int"))
172+ then {
173+ let F = m
171174 [StringEntry((T + "_Owner"), U)]
172- }
173- else throw("Incorrect invoke result")
174- }
175+ }
176+ else throw("Incorrect invoke result")
177+ }
178+ else throw("Strict value is not equal to itself.")
179+ }
180+ else throw("Strict value is not equal to itself.")
175181 }
176182
177183
185191 let V = p((T + "_Owner"))
186192 let Q = q(T)
187193 let R = invoke(Address(b), "transferCoins", [V, Y, Q], nil)
188- let S = o(V)
189- let P = j[value(indexOf(g, z))]
190- let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S - P)], nil)
191- let m = E
192- if ($isInstanceOf(m, "Int"))
194+ if ((R == R))
193195 then {
194- let F = m
196+ let S = o((V + "_Power"))
197+ let P = j[value(indexOf(g, z))]
198+ let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S - P)], nil)
199+ if ((E == E))
200+ then {
201+ let m = E
202+ if ($isInstanceOf(m, "Int"))
203+ then {
204+ let F = m
195205 [DeleteEntry(T)]
206+ }
207+ else throw("Incorrect invoke result")
208+ }
209+ else throw("Strict value is not equal to itself.")
196210 }
197- else throw("Incorrect invoke result")
211+ else throw("Strict value is not equal to itself.")
198212 }
199213
200214
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf'
55
66 let b = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ'
77
88 let c = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy'
99
1010 let d = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9")
1111
1212 let e = "BUILD_STARTED"
1313
1414 let f = "BUILD_FINISHED"
1515
1616 let g = ["City", "Barrack", "Barn", "Warrior"]
1717
1818 let h = [1000000000, 1000000000, 1000000000, 500000000]
1919
2020 let i = [4, 4, 4, 2]
2121
2222 let j = [1000, 500, 500, 0]
2323
2424 func k (l) = {
2525 let m = getInteger(Address(b), l)
2626 if ($isInstanceOf(m, "Int"))
2727 then {
2828 let n = m
2929 n
3030 }
3131 else 0
3232 }
3333
3434
3535 func o (l) = {
3636 let m = getInteger(Address(b), l)
3737 if ($isInstanceOf(m, "Int"))
3838 then {
3939 let n = m
4040 n
4141 }
4242 else 0
4343 }
4444
4545
4646 func p (l) = {
4747 let m = getString(this, l)
4848 if ($isInstanceOf(m, "String"))
4949 then {
5050 let n = m
5151 n
5252 }
5353 else ""
5454 }
5555
5656
5757 func q (l) = {
5858 let m = getInteger(this, l)
5959 if ($isInstanceOf(m, "Int"))
6060 then {
6161 let n = m
6262 n
6363 }
6464 else 0
6565 }
6666
6767
6868 func r (s,t) = ((t + "_") + toBase58String(s))
6969
7070
7171 func u (s,t) = (r(s, t) + "_Owner")
7272
7373
7474 func v (w,s,t) = (((w + "_") + r(s, t)) + "_fh")
7575
7676
7777 func x (w,s,t) = (((w + "_") + r(s, t)) + "_status")
7878
7979
8080 @Callable(y)
8181 func StartBuild (z) = if (!(containsElement(g, z)))
8282 then throw("This asset is not amanged by the system")
8383 else {
8484 let A = value(indexOf(g, z))
8585 let B = i[A]
8686 let C = h[A]
8787 let D = value(y.payments[0].amount)
8888 if ((C > D))
8989 then throw(("You provided less $heg than the needed cost for building this " + z))
9090 else if ((y.payments[0].assetId != a))
9191 then throw("Only $HEG payments allowed")
9292 else {
9393 let E = invoke(Address(b), "Deposit", nil, y.payments)
9494 let m = E
9595 if ($isInstanceOf(m, "Int"))
9696 then {
9797 let F = m
9898 [StringEntry(x(toString(y.originCaller), y.transactionId, z), e), StringEntry(u(y.transactionId, z), toString(y.originCaller)), IntegerEntry(v(toString(y.originCaller), y.transactionId, z), (height + B))]
9999 }
100100 else throw("Incorrect invoke result")
101101 }
102102 }
103103
104104
105105
106106 @Callable(y)
107107 func FinishBuild (G,H) = {
108108 let s = fromBase58String(G)
109109 let I = x(toString(y.caller), s, H)
110110 let J = v(toString(y.caller), s, H)
111111 let K = r(s, H)
112112 let L = p(u(s, H))
113113 if ((L != toString(y.caller)))
114114 then throw(("You cannot claim other's players " + H))
115115 else {
116116 let M = p(I)
117117 if ((M == ""))
118118 then throw("No pending operations for this asset")
119119 else {
120120 let N = getIntegerValue(this, J)
121121 if ((N > height))
122122 then throw((((("Building is not finished yet " + toString((N - height))) + " blocks remaining, it will take around ") + toString((N - height))) + " minutes"))
123123 else {
124124 let O = value(indexOf(g, H))
125125 let P = j[O]
126126 let Q = h[O]
127127 let R = invoke(Address(b), "Pay", [toString(y.caller), Q], nil)
128128 if ((R == R))
129129 then {
130- let S = o(toString(y.caller))
130+ let S = o((toString(y.caller) + "_Power"))
131131 let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S + P)], nil)
132132 if ((E == E))
133133 then {
134134 let m = E
135135 if ($isInstanceOf(m, "Int"))
136136 then {
137137 let F = m
138138 [IntegerEntry(K, Q), DeleteEntry(I), DeleteEntry(J)]
139139 }
140140 else throw("Incorrect invoke result")
141141 }
142142 else throw("Strict value is not equal to itself.")
143143 }
144144 else throw("Strict value is not equal to itself.")
145145 }
146146 }
147147 }
148148 }
149149
150150
151151
152152 @Callable(y)
153153 func transferOwnership (T,U,z) = if (if ((y.caller != d))
154154 then (y.caller != this)
155155 else false)
156156 then throw("Only the admin can perform this operation")
157157 else {
158158 let V = p((T + "_Owner"))
159159 let S = o(V)
160160 let P = j[value(indexOf(g, z))]
161161 let E = invoke(Address(c), "setUserPower", [V, (S - P)], nil)
162- if ((E != (S - P)))
163- then throw("Incorrect invoke result")
164- else {
165- let W = o(U)
166- let X = invoke(Address(c), "setUserPower", [U, (S + P)], nil)
167- let m = X
168- if ($isInstanceOf(m, "Int"))
169- then {
170- let F = m
162+ if ((E == E))
163+ then if ((E != (S - P)))
164+ then throw("Incorrect invoke result")
165+ else {
166+ let W = o((U + "_Power"))
167+ let X = invoke(Address(c), "setUserPower", [U, (S + P)], nil)
168+ if ((X == X))
169+ then {
170+ let m = X
171+ if ($isInstanceOf(m, "Int"))
172+ then {
173+ let F = m
171174 [StringEntry((T + "_Owner"), U)]
172- }
173- else throw("Incorrect invoke result")
174- }
175+ }
176+ else throw("Incorrect invoke result")
177+ }
178+ else throw("Strict value is not equal to itself.")
179+ }
180+ else throw("Strict value is not equal to itself.")
175181 }
176182
177183
178184
179185 @Callable(y)
180186 func destroyAssetAndTransfer (T,Y,z) = if (if ((y.caller != d))
181187 then (y.caller != this)
182188 else false)
183189 then throw("Only the admin can perform this operation")
184190 else {
185191 let V = p((T + "_Owner"))
186192 let Q = q(T)
187193 let R = invoke(Address(b), "transferCoins", [V, Y, Q], nil)
188- let S = o(V)
189- let P = j[value(indexOf(g, z))]
190- let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S - P)], nil)
191- let m = E
192- if ($isInstanceOf(m, "Int"))
194+ if ((R == R))
193195 then {
194- let F = m
196+ let S = o((V + "_Power"))
197+ let P = j[value(indexOf(g, z))]
198+ let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S - P)], nil)
199+ if ((E == E))
200+ then {
201+ let m = E
202+ if ($isInstanceOf(m, "Int"))
203+ then {
204+ let F = m
195205 [DeleteEntry(T)]
206+ }
207+ else throw("Incorrect invoke result")
208+ }
209+ else throw("Strict value is not equal to itself.")
196210 }
197- else throw("Incorrect invoke result")
211+ else throw("Strict value is not equal to itself.")
198212 }
199213
200214

github/deemru/w8io/169f3d6 
36.99 ms