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/QAAAAAObmF0aW9uc0FkZHJlc3MBAAAAGgFUTYXo3vT4RGtZEDtwX8O3uWUOUfVERm2gAAAAAAxhZG1pbkFkZHJlc3MJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AAAAAAxCdWlsZFN0YXJ0ZWQCAAAADUJVSUxEX1NUQVJURUQAAAAADUJ1aWxkRmluaXNoZWQCAAAADkJVSUxEX0ZJTklTSEVEAAAAAAZBc3NldHMJAARMAAAAAgIAAAAGTmF0aW9uCQAETAAAAAICAAAABENpdHkJAARMAAAAAgIAAAAHQmFycmFjawkABEwAAAACAgAAAARCYXJuCQAETAAAAAICAAAAB1dhcnJp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dPd25lcgMDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAADGFkbWluQWRkcmVzcwYJAQAAAAIhPQAAAAIICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAADm5hdGlvbnNBZGRyZXNzCQAFFAAAAAIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAluYXRpb25LZXkCAAAABl9Pd25lcgUAAAAIbmV3T3duZXIFAAAAA25pbAYEAAAADGN1cnJlbnRPd25lcgkBAAAADHRyeUdldFN0cmluZwAAAAEJAAEsAAAAAgUAAAAJbmF0aW9uS2V5AgAAAAZfT3duZXIDCQEAAAACIT0AAAACBQAAAAxjdXJyZW50T3duZXIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAHFlvdSBhcmUgbm90IHRoZSBuYXRpb24gb3duZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAluYXRpb25LZXkCAAAABl9Pd25lcgUAAAAIbmV3T3duZXIFAAAAA25pbAAAAAA5jWDe", "height": 2045618, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2S1B8H8oL9TMGtcjUebattE24gUbqq2HsKp3A4b183ZB Next: GhTKvW4kjgvmc79URq2qU5mkaddWjT3aafYZF4piqkmY Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | ||
14 | 14 | let f = "BUILD_FINISHED" | |
15 | 15 | ||
16 | - | let g = ["City", "Barrack", "Barn", "Warrior"] | |
16 | + | let g = ["Nation", "City", "Barrack", "Barn", "Warrior"] | |
17 | 17 | ||
18 | - | let h = [1000000000, 1000000000, 1000000000, 500000000] | |
18 | + | let h = [0, 1000000000, 1000000000, 1000000000, 500000000] | |
19 | 19 | ||
20 | - | let i = [4, 4, 4, 2] | |
20 | + | let i = [0, 4, 4, 4, 2] | |
21 | 21 | ||
22 | - | let j = [1000, 500, 500, 0] | |
22 | + | let j = [0, 1000, 500, 500, 0] | |
23 | 23 | ||
24 | 24 | func k (l) = { | |
25 | 25 | let m = getInteger(Address(b), l) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | @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)) | |
154 | 154 | then (y.caller != this) | |
155 | + | else false) | |
156 | + | then (y.caller.bytes != c) | |
155 | 157 | else false) | |
156 | 158 | then throw("Only the admin can perform this operation") | |
157 | 159 | else { | |
212 | 214 | } | |
213 | 215 | ||
214 | 216 | ||
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 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf' | |
5 | 5 | ||
6 | 6 | let b = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ' | |
7 | 7 | ||
8 | 8 | let c = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy' | |
9 | 9 | ||
10 | 10 | let d = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9") | |
11 | 11 | ||
12 | 12 | let e = "BUILD_STARTED" | |
13 | 13 | ||
14 | 14 | let f = "BUILD_FINISHED" | |
15 | 15 | ||
16 | - | let g = ["City", "Barrack", "Barn", "Warrior"] | |
16 | + | let g = ["Nation", "City", "Barrack", "Barn", "Warrior"] | |
17 | 17 | ||
18 | - | let h = [1000000000, 1000000000, 1000000000, 500000000] | |
18 | + | let h = [0, 1000000000, 1000000000, 1000000000, 500000000] | |
19 | 19 | ||
20 | - | let i = [4, 4, 4, 2] | |
20 | + | let i = [0, 4, 4, 4, 2] | |
21 | 21 | ||
22 | - | let j = [1000, 500, 500, 0] | |
22 | + | let j = [0, 1000, 500, 500, 0] | |
23 | 23 | ||
24 | 24 | func k (l) = { | |
25 | 25 | let m = getInteger(Address(b), l) | |
26 | 26 | if ($isInstanceOf(m, "Int")) | |
27 | 27 | then { | |
28 | 28 | let n = m | |
29 | 29 | n | |
30 | 30 | } | |
31 | 31 | else 0 | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o (l) = { | |
36 | 36 | let m = getInteger(Address(b), l) | |
37 | 37 | if ($isInstanceOf(m, "Int")) | |
38 | 38 | then { | |
39 | 39 | let n = m | |
40 | 40 | n | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p (l) = { | |
47 | 47 | let m = getString(this, l) | |
48 | 48 | if ($isInstanceOf(m, "String")) | |
49 | 49 | then { | |
50 | 50 | let n = m | |
51 | 51 | n | |
52 | 52 | } | |
53 | 53 | else "" | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func q (l) = { | |
58 | 58 | let m = getInteger(this, l) | |
59 | 59 | if ($isInstanceOf(m, "Int")) | |
60 | 60 | then { | |
61 | 61 | let n = m | |
62 | 62 | n | |
63 | 63 | } | |
64 | 64 | else 0 | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func r (s,t) = ((t + "_") + toBase58String(s)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func u (s,t) = (r(s, t) + "_Owner") | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func v (w,s,t) = (((w + "_") + r(s, t)) + "_fh") | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func x (w,s,t) = (((w + "_") + r(s, t)) + "_status") | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | @Callable(y) | |
81 | 81 | func StartBuild (z) = if (!(containsElement(g, z))) | |
82 | 82 | then throw("This asset is not amanged by the system") | |
83 | 83 | else { | |
84 | 84 | let A = value(indexOf(g, z)) | |
85 | 85 | let B = i[A] | |
86 | 86 | let C = h[A] | |
87 | 87 | let D = value(y.payments[0].amount) | |
88 | 88 | if ((C > D)) | |
89 | 89 | then throw(("You provided less $heg than the needed cost for building this " + z)) | |
90 | 90 | else if ((y.payments[0].assetId != a)) | |
91 | 91 | then throw("Only $HEG payments allowed") | |
92 | 92 | else { | |
93 | 93 | let E = invoke(Address(b), "Deposit", nil, y.payments) | |
94 | 94 | let m = E | |
95 | 95 | if ($isInstanceOf(m, "Int")) | |
96 | 96 | then { | |
97 | 97 | let F = m | |
98 | 98 | [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))] | |
99 | 99 | } | |
100 | 100 | else throw("Incorrect invoke result") | |
101 | 101 | } | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | ||
106 | 106 | @Callable(y) | |
107 | 107 | func FinishBuild (G,H) = { | |
108 | 108 | let s = fromBase58String(G) | |
109 | 109 | let I = x(toString(y.caller), s, H) | |
110 | 110 | let J = v(toString(y.caller), s, H) | |
111 | 111 | let K = r(s, H) | |
112 | 112 | let L = p(u(s, H)) | |
113 | 113 | if ((L != toString(y.caller))) | |
114 | 114 | then throw(("You cannot claim other's players " + H)) | |
115 | 115 | else { | |
116 | 116 | let M = p(I) | |
117 | 117 | if ((M == "")) | |
118 | 118 | then throw("No pending operations for this asset") | |
119 | 119 | else { | |
120 | 120 | let N = getIntegerValue(this, J) | |
121 | 121 | if ((N > height)) | |
122 | 122 | then throw((((("Building is not finished yet " + toString((N - height))) + " blocks remaining, it will take around ") + toString((N - height))) + " minutes")) | |
123 | 123 | else { | |
124 | 124 | let O = value(indexOf(g, H)) | |
125 | 125 | let P = j[O] | |
126 | 126 | let Q = h[O] | |
127 | 127 | let R = invoke(Address(b), "Pay", [toString(y.caller), Q], nil) | |
128 | 128 | if ((R == R)) | |
129 | 129 | then { | |
130 | 130 | let S = o((toString(y.caller) + "_Power")) | |
131 | 131 | let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S + P)], nil) | |
132 | 132 | if ((E == E)) | |
133 | 133 | then { | |
134 | 134 | let m = E | |
135 | 135 | if ($isInstanceOf(m, "Int")) | |
136 | 136 | then { | |
137 | 137 | let F = m | |
138 | 138 | [IntegerEntry(K, Q), DeleteEntry(I), DeleteEntry(J)] | |
139 | 139 | } | |
140 | 140 | else throw("Incorrect invoke result") | |
141 | 141 | } | |
142 | 142 | else throw("Strict value is not equal to itself.") | |
143 | 143 | } | |
144 | 144 | else throw("Strict value is not equal to itself.") | |
145 | 145 | } | |
146 | 146 | } | |
147 | 147 | } | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | ||
152 | 152 | @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)) | |
154 | 154 | then (y.caller != this) | |
155 | + | else false) | |
156 | + | then (y.caller.bytes != c) | |
155 | 157 | else false) | |
156 | 158 | then throw("Only the admin can perform this operation") | |
157 | 159 | else { | |
158 | 160 | let V = p((T + "_Owner")) | |
159 | 161 | let S = o((V + "_Power")) | |
160 | 162 | let P = j[value(indexOf(g, z))] | |
161 | 163 | let E = invoke(Address(c), "setUserPower", [V, (S - P)], nil) | |
162 | 164 | if ((E == E)) | |
163 | 165 | then if ((E != (S - P))) | |
164 | 166 | then throw("Incorrect invoke result") | |
165 | 167 | else { | |
166 | 168 | let W = o((U + "_Power")) | |
167 | 169 | let X = invoke(Address(c), "setUserPower", [U, (W + P)], nil) | |
168 | 170 | if ((X == X)) | |
169 | 171 | then { | |
170 | 172 | let m = X | |
171 | 173 | if ($isInstanceOf(m, "Int")) | |
172 | 174 | then { | |
173 | 175 | let F = m | |
174 | 176 | [StringEntry((T + "_Owner"), U)] | |
175 | 177 | } | |
176 | 178 | else throw("Incorrect invoke result") | |
177 | 179 | } | |
178 | 180 | else throw("Strict value is not equal to itself.") | |
179 | 181 | } | |
180 | 182 | else throw("Strict value is not equal to itself.") | |
181 | 183 | } | |
182 | 184 | ||
183 | 185 | ||
184 | 186 | ||
185 | 187 | @Callable(y) | |
186 | 188 | func destroyAssetAndTransfer (T,Y,z) = if (if ((y.caller != d)) | |
187 | 189 | then (y.caller != this) | |
188 | 190 | else false) | |
189 | 191 | then throw("Only the admin can perform this operation") | |
190 | 192 | else { | |
191 | 193 | let V = p((T + "_Owner")) | |
192 | 194 | let Q = q(T) | |
193 | 195 | let R = invoke(Address(b), "arbitraryAddCoins", [Y, Q], nil) | |
194 | 196 | if ((R == R)) | |
195 | 197 | then { | |
196 | 198 | let S = o((V + "_Power")) | |
197 | 199 | let P = j[value(indexOf(g, z))] | |
198 | 200 | let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S - P)], nil) | |
199 | 201 | if ((E == E)) | |
200 | 202 | then { | |
201 | 203 | let m = E | |
202 | 204 | if ($isInstanceOf(m, "Int")) | |
203 | 205 | then { | |
204 | 206 | let F = m | |
205 | 207 | [DeleteEntry(T)] | |
206 | 208 | } | |
207 | 209 | else throw("Incorrect invoke result") | |
208 | 210 | } | |
209 | 211 | else throw("Strict value is not equal to itself.") | |
210 | 212 | } | |
211 | 213 | else throw("Strict value is not equal to itself.") | |
212 | 214 | } | |
213 | 215 | ||
214 | 216 | ||
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 ◑