tx · 5AZnZNrPfJHxeUof6RP26roFzCV5hvsCEoBKAuRg86Gh

3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb:  -0.01000000 Waves

2022.05.10 16:17 [2045618] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves

{ "type": 13, "id": "5AZnZNrPfJHxeUof6RP26roFzCV5hvsCEoBKAuRg86Gh", "fee": 1000000, "feeAssetId": null, "timestamp": 1652188677022, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "5SW4sX5GmhYy7LMhMhMa9Frjcj1gKvPdhyJPLi8gWc8AbY3B6nnRTUbVQM3wc3hfGfN3BKWRxS6Bdsp8cPGdTg9J" ], "script": "base64:AAIFAAAAAAAAACEIAhIDCgEIEgQKAggIEgUKAwgICBIFCgMICAgSBAoCCAgAAAASAAAAAApzaGlueXdnZ2lkAQAAACCJac8C/7a6udRxltd5uJl2JrB00Hd59HNuhvD0c58GJgAAAAAPdHJlYXN1cnlBZGRyZXNzAQAAABoBVGX48BYLBMBZQnAankiMl/9+3Bxi8t27/QAAAAAObmF0aW9uc0FkZHJlc3MBAAAAGgFUTYXo3vT4RGtZEDtwX8O3uWUOUfVERm2gAAAAAAxhZG1pbkFkZHJlc3MJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AAAAAAxCdWlsZFN0YXJ0ZWQCAAAADUJVSUxEX1NUQVJURUQAAAAADUJ1aWxkRmluaXNoZWQCAAAADkJVSUxEX0ZJTklTSEVEAAAAAAZBc3NldHMJAARMAAAAAgIAAAAGTmF0aW9uCQAETAAAAAICAAAABENpdHkJAARMAAAAAgIAAAAHQmFycmFjawkABEwAAAACAgAAAARCYXJuCQAETAAAAAICAAAAB1dhcnJ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XdPd25lcgMDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAADGFkbWluQWRkcmVzcwYJAQAAAAIhPQAAAAIICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAADm5hdGlvbnNBZGRyZXNzCQAFFAAAAAIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAluYXRpb25LZXkCAAAABl9Pd25lcgUAAAAIbmV3T3duZXIFAAAAA25pbAYEAAAADGN1cnJlbnRPd25lcgkBAAAADHRyeUdldFN0cmluZwAAAAEJAAEsAAAAAgUAAAAJbmF0aW9uS2V5AgAAAAZfT3duZXIDCQEAAAACIT0AAAACBQAAAAxjdXJyZW50T3duZXIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAHFlvdSBhcmUgbm90IHRoZSBuYXRpb24gb3duZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAluYXRpb25LZXkCAAAABl9Pd25lcgUAAAAIbmV3T3duZXIFAAAAA25pbAAAAAA5jWDe", "height": 2045618, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2S1B8H8oL9TMGtcjUebattE24gUbqq2HsKp3A4b183ZB Next: GhTKvW4kjgvmc79URq2qU5mkaddWjT3aafYZF4piqkmY Diff:
OldNewDifferences
1313
1414 let f = "BUILD_FINISHED"
1515
16-let g = ["City", "Barrack", "Barn", "Warrior"]
16+let g = ["Nation", "City", "Barrack", "Barn", "Warrior"]
1717
18-let h = [1000000000, 1000000000, 1000000000, 500000000]
18+let h = [0, 1000000000, 1000000000, 1000000000, 500000000]
1919
20-let i = [4, 4, 4, 2]
20+let i = [0, 4, 4, 4, 2]
2121
22-let j = [1000, 500, 500, 0]
22+let j = [0, 1000, 500, 500, 0]
2323
2424 func k (l) = {
2525 let m = getInteger(Address(b), l)
150150
151151
152152 @Callable(y)
153-func transferOwnership (T,U,z) = if (if ((y.caller != d))
153+func transferOwnership (T,U,z) = if (if (if ((y.caller != d))
154154 then (y.caller != this)
155+ else false)
156+ then (y.caller.bytes != c)
155157 else false)
156158 then throw("Only the admin can perform this operation")
157159 else {
212214 }
213215
214216
217+
218+@Callable(y)
219+func setNationOwner (Z,U) = if (if ((y.caller != d))
220+ then true
221+ else (y.caller.bytes != c))
222+ then $Tuple2([StringEntry((Z + "_Owner"), U)], true)
223+ else {
224+ let aa = p((Z + "_Owner"))
225+ if ((aa != toString(y.caller)))
226+ then throw("You are not the nation owner")
227+ else [StringEntry((Z + "_Owner"), U)]
228+ }
229+
230+
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
16-let g = ["City", "Barrack", "Barn", "Warrior"]
16+let g = ["Nation", "City", "Barrack", "Barn", "Warrior"]
1717
18-let h = [1000000000, 1000000000, 1000000000, 500000000]
18+let h = [0, 1000000000, 1000000000, 1000000000, 500000000]
1919
20-let i = [4, 4, 4, 2]
20+let i = [0, 4, 4, 4, 2]
2121
22-let j = [1000, 500, 500, 0]
22+let j = [0, 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 {
130130 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)
153-func transferOwnership (T,U,z) = if (if ((y.caller != d))
153+func transferOwnership (T,U,z) = if (if (if ((y.caller != d))
154154 then (y.caller != this)
155+ else false)
156+ then (y.caller.bytes != c)
155157 else false)
156158 then throw("Only the admin can perform this operation")
157159 else {
158160 let V = p((T + "_Owner"))
159161 let S = o((V + "_Power"))
160162 let P = j[value(indexOf(g, z))]
161163 let E = invoke(Address(c), "setUserPower", [V, (S - P)], nil)
162164 if ((E == E))
163165 then if ((E != (S - P)))
164166 then throw("Incorrect invoke result")
165167 else {
166168 let W = o((U + "_Power"))
167169 let X = invoke(Address(c), "setUserPower", [U, (W + P)], nil)
168170 if ((X == X))
169171 then {
170172 let m = X
171173 if ($isInstanceOf(m, "Int"))
172174 then {
173175 let F = m
174176 [StringEntry((T + "_Owner"), U)]
175177 }
176178 else throw("Incorrect invoke result")
177179 }
178180 else throw("Strict value is not equal to itself.")
179181 }
180182 else throw("Strict value is not equal to itself.")
181183 }
182184
183185
184186
185187 @Callable(y)
186188 func destroyAssetAndTransfer (T,Y,z) = if (if ((y.caller != d))
187189 then (y.caller != this)
188190 else false)
189191 then throw("Only the admin can perform this operation")
190192 else {
191193 let V = p((T + "_Owner"))
192194 let Q = q(T)
193195 let R = invoke(Address(b), "arbitraryAddCoins", [Y, Q], nil)
194196 if ((R == R))
195197 then {
196198 let S = o((V + "_Power"))
197199 let P = j[value(indexOf(g, z))]
198200 let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S - P)], nil)
199201 if ((E == E))
200202 then {
201203 let m = E
202204 if ($isInstanceOf(m, "Int"))
203205 then {
204206 let F = m
205207 [DeleteEntry(T)]
206208 }
207209 else throw("Incorrect invoke result")
208210 }
209211 else throw("Strict value is not equal to itself.")
210212 }
211213 else throw("Strict value is not equal to itself.")
212214 }
213215
214216
217+
218+@Callable(y)
219+func setNationOwner (Z,U) = if (if ((y.caller != d))
220+ then true
221+ else (y.caller.bytes != c))
222+ then $Tuple2([StringEntry((Z + "_Owner"), U)], true)
223+ else {
224+ let aa = p((Z + "_Owner"))
225+ if ((aa != toString(y.caller)))
226+ then throw("You are not the nation owner")
227+ else [StringEntry((Z + "_Owner"), U)]
228+ }
229+
230+

github/deemru/w8io/169f3d6 
69.10 ms