tx · GX59dphnSvfR1FTR8GnqV7WdQZd7Woorv3s1ECAMdiLi 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb: -0.01000000 Waves 2022.05.09 14:20 [2044073] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves
{ "type": 13, "id": "GX59dphnSvfR1FTR8GnqV7WdQZd7Woorv3s1ECAMdiLi", "fee": 1000000, "feeAssetId": null, "timestamp": 1652095268548, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "oRkc62BMf6jV6VqySpon1tHgvsRDhzeDnmQn85nXnXZTzRi2EaRSzzgXY6bHMcG2XcDgycrJNMbhpNAtXMncc6z" ], "script": "base64:AAIFAAAAAAAAABsIAhIDCgEIEgQKAggIEgUKAwgICBIFCgMICAgAAAASAAAAAApzaGlueXdnZ2lkAQAAACCJac8C/7a6udRxltd5uJl2JrB00Hd59HNuhvD0c58GJgAAAAAPdHJlYXN1cnlBZGRyZXNzAQAAABoBVGX48BYLBMBZQnAankiMl/9+3Bxi8t27/QAAAAAObmF0aW9uc0FkZHJlc3MBAAAAGgFUTYXo3vT4RGtZEDtwX8O3uWUOUfVERm2gAAAAAAxhZG1pbkFkZHJlc3MJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AAAAAAxCdWlsZFN0YXJ0ZWQCAAAADUJVSUxEX1NUQVJURUQAAAAADUJ1aWxkRmluaXNoZWQCAAAADkJVSUxEX0ZJTklTSEVEAAAAAAZBc3NldHMJAARMAAAAAgIAAAAEQ2l0eQkABEwAAAACAgAAAAdCYXJyYWNrCQAETAAAAAICAAAABEJhcm4JAARMAAAAAgIAAAAHV2FycmlvcgUAAAADbmlsAAAAAAphc3NldHNDb3N0CQAETAA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NhbGwEAAAADGN1cnJlbnRQb3dlcgkBAAAAFG5hdGlvbnNUcnlHZXRJbnRlZ2VyAAAAAQkAASwAAAACBQAAAAhvbGRPd25lcgIAAAAGX1Bvd2VyBAAAAAphc3NldFBvd2VyCQABkQAAAAIFAAAAC2Fzc2V0c1Bvd2VyCQEAAAAFdmFsdWUAAAABCQAETwAAAAIFAAAABkFzc2V0cwUAAAAMc3RyQXNzZXRUeXBlBAAAAAJwdwkAA/wAAAAECQEAAAAHQWRkcmVzcwAAAAEFAAAADm5hdGlvbnNBZGRyZXNzAgAAAAxzZXRVc2VyUG93ZXIJAARMAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIJAARMAAAAAgkAAGUAAAACBQAAAAxjdXJyZW50UG93ZXIFAAAACmFzc2V0UG93ZXIFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAJwdwUAAAACcHcEAAAAByRtYXRjaDAFAAAAAnB3AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXIFAAAAByRtYXRjaDAJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAF0luY29ycmVjdCBpbnZva2UgcmVzdWx0CQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAA+5eq7Q==", "height": 2044073, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3FbWH3uXFfJfZ4Cq8dhGMVwnpb2NjP24k7GpMwp4eq2H Next: 4MXP6QRsxmvnr9QPmCf5VXLFhGCGUWy4jhQSCBryCkXk Full:
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 | 16 | let g = ["City", "Barrack", "Barn", "Warrior"] | |
17 | 17 | ||
18 | 18 | let h = [1000000000, 1000000000, 1000000000, 500000000] | |
19 | 19 | ||
20 | 20 | let i = [4, 4, 4, 2] | |
21 | 21 | ||
22 | 22 | let j = [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 | 153 | func transferOwnership (T,U,z) = if (if ((y.caller != d)) | |
154 | 154 | then (y.caller != this) | |
155 | 155 | else false) | |
156 | 156 | then throw("Only the admin can perform this operation") | |
157 | 157 | else { | |
158 | 158 | let V = p((T + "_Owner")) | |
159 | 159 | let S = o(V) | |
160 | 160 | let P = j[value(indexOf(g, z))] | |
161 | 161 | let E = invoke(Address(c), "setUserPower", [V, (S - P)], nil) | |
162 | 162 | if ((E == E)) | |
163 | 163 | then if ((E != (S - P))) | |
164 | 164 | then throw("Incorrect invoke result") | |
165 | 165 | else { | |
166 | 166 | let W = o((U + "_Power")) | |
167 | 167 | let X = invoke(Address(c), "setUserPower", [U, (S + P)], nil) | |
168 | 168 | if ((X == X)) | |
169 | 169 | then { | |
170 | 170 | let m = X | |
171 | 171 | if ($isInstanceOf(m, "Int")) | |
172 | 172 | then { | |
173 | 173 | let F = m | |
174 | 174 | [StringEntry((T + "_Owner"), U)] | |
175 | 175 | } | |
176 | 176 | else throw("Incorrect invoke result") | |
177 | 177 | } | |
178 | 178 | else throw("Strict value is not equal to itself.") | |
179 | 179 | } | |
180 | 180 | else throw("Strict value is not equal to itself.") | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | ||
185 | 185 | @Callable(y) | |
186 | 186 | func destroyAssetAndTransfer (T,Y,z) = if (if ((y.caller != d)) | |
187 | 187 | then (y.caller != this) | |
188 | 188 | else false) | |
189 | 189 | then throw("Only the admin can perform this operation") | |
190 | 190 | else { | |
191 | 191 | let V = p((T + "_Owner")) | |
192 | 192 | let Q = q(T) | |
193 | 193 | let R = invoke(Address(b), "transferCoins", [V, Y, Q], nil) | |
194 | 194 | if ((R == R)) | |
195 | 195 | then { | |
196 | 196 | let S = o((V + "_Power")) | |
197 | 197 | let P = j[value(indexOf(g, z))] | |
198 | 198 | let E = invoke(Address(c), "setUserPower", [toString(y.caller), (S - P)], nil) | |
199 | 199 | if ((E == E)) | |
200 | 200 | then { | |
201 | 201 | let m = E | |
202 | 202 | if ($isInstanceOf(m, "Int")) | |
203 | 203 | then { | |
204 | 204 | let F = m | |
205 | 205 | [DeleteEntry(T)] | |
206 | 206 | } | |
207 | 207 | else throw("Incorrect invoke result") | |
208 | 208 | } | |
209 | 209 | else throw("Strict value is not equal to itself.") | |
210 | 210 | } | |
211 | 211 | else throw("Strict value is not equal to itself.") | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 |
github/deemru/w8io/169f3d6 37.33 ms ◑