tx · 2iPAeMrpEokwKj41kPuJB1sW11mMwp1M24EgdcXcUe5u

3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb:  -0.01000000 Waves

2022.05.09 13:31 [2044021] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves

{ "type": 13, "id": "2iPAeMrpEokwKj41kPuJB1sW11mMwp1M24EgdcXcUe5u", "fee": 1000000, "feeAssetId": null, "timestamp": 1652092320684, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "5ccRnbj1CHcN7W1e9j6FSeguoBQUEPZL5Ai2M2aFet6cn6qZWpvceDJ5qEjLGL6sUSt4doPHD5ndekzNkejSCaKD" ], "script": "base64:AAIFAAAAAAAAABsIAhIDCgEIEgQKAggIEgUKAwgICBIFCgMICAgAAAASAAAAAApzaGlueXdnZ2lkAQAAACCJac8C/7a6udRxltd5uJl2JrB00Hd59HNuhvD0c58GJgAAAAAPdHJlYXN1cnlBZGRyZXNzAQAAABoBVGX48BYLBMBZQnAankiMl/9+3Bxi8t27/QAAAAAObmF0aW9uc0FkZHJlc3MBAAAAGgFUTYXo3vT4RGtZEDtwX8O3uWUOUfVERm2gAAAAAAxhZG1pbkFkZHJlc3MJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AAAAAAxCdWlsZFN0YXJ0ZWQCAAAADUJVSUxEX1NUQVJURUQAAAAADUJ1aWxkRmluaXNoZWQCAAAADkJVSUxEX0ZJTklTSEVEAAAAAAZBc3NldHMJAARMAAAAAgIAAAAEQ2l0eQkABEwAAAACAgAAAAdCYXJyYWNrCQAETAAAAAICAAAABEJhcm4JAARMAAAAAgIAAAAHV2FycmlvcgUAAAADbmlsAAAAAAphc3NldHNDb3N0CQA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GhpcyBvcGVyYXRpb24EAAAACG9sZE93bmVyCQEAAAAMdHJ5R2V0U3RyaW5nAAAAAQkAASwAAAACBQAAAAdhc3NldElkAgAAAAZfT3duZXIEAAAACmFzc2V0Q29pbnMJAQAAAA10cnlHZXRJbnRlZ2VyAAAAAQUAAAAHYXNzZXRJZAQAAAAHcmVmQ2FsbAkAA/wAAAAECQEAAAAHQWRkcmVzcwAAAAEFAAAAD3RyZWFzdXJ5QWRkcmVzcwIAAAANdHJhbnNmZXJDb2lucwkABEwAAAACBQAAAAhvbGRPd25lcgkABEwAAAACBQAAAAl0b0FkZHJlc3MJAARMAAAAAgUAAAAKYXNzZXRDb2lucwUAAAADbmlsBQAAAANuaWwEAAAADGN1cnJlbnRQb3dlcgkBAAAAFG5hdGlvbnNUcnlHZXRJbnRlZ2VyAAAAAQUAAAAIb2xkT3duZXIEAAAACmFzc2V0UG93ZXIJAAGRAAAAAgUAAAALYXNzZXRzUG93ZXIJAQAAAAV2YWx1ZQAAAAEJAARPAAAAAgUAAAAGQXNzZXRzBQAAAAxzdHJBc3NldFR5cGUEAAAAAnB3CQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQUAAAAObmF0aW9uc0FkZHJlc3MCAAAADHNldFVzZXJQb3dlcgkABEwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgkABEwAAAACCQAAZQAAAAIFAAAADGN1cnJlbnRQb3dlcgUAAAAKYXNzZXRQb3dlcgUAAAADbmlsBQAAAANuaWwJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAPHoavY=", "height": 2044021, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7D9Q1rgrgbDJFKgQa4vR1bMEN9Nfe7x5iozSENqKTu2s Next: 9DdCnLRnMEBZhEHzfmMP1BBnu2ZUHQhj3kB8U3EUVb4i Diff:
OldNewDifferences
9090 else if ((y.payments[0].assetId != a))
9191 then throw("Only $HEG payments allowed")
9292 else {
93- let E = invoke(Address(b), "Deposit", nil, [AttachedPayment(a, value(y.payments[0].amount))])
93+ let E = invoke(Address(b), "Deposit", nil, y.payments)
9494 let F = [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))]
9595 F
9696 }
120120 let P = j[O]
121121 let Q = h[O]
122122 let E = invoke(Address(b), "Pay", [toString(y.caller), Q], nil)
123- let R = o(toString(y.caller))
124- let S = invoke(Address(c), "setUserPower", [toString(y.caller), (R + P)], nil)
125- let F = [IntegerEntry(K, Q), DeleteEntry(I), DeleteEntry(J)]
126- F
123+ if ((E == E))
124+ then {
125+ let R = o(toString(y.caller))
126+ let S = invoke(Address(c), "setUserPower", [toString(y.caller), (R + P)], nil)
127+ if ((S == S))
128+ then {
129+ let F = [IntegerEntry(K, Q), DeleteEntry(I), DeleteEntry(J)]
130+ F
131+ }
132+ else throw("Strict value is not equal to itself.")
133+ }
134+ else throw("Strict value is not equal to itself.")
127135 }
128136 }
129137 }
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 {
93- let E = invoke(Address(b), "Deposit", nil, [AttachedPayment(a, value(y.payments[0].amount))])
93+ let E = invoke(Address(b), "Deposit", nil, y.payments)
9494 let F = [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))]
9595 F
9696 }
9797 }
9898
9999
100100
101101 @Callable(y)
102102 func FinishBuild (G,H) = {
103103 let s = fromBase58String(G)
104104 let I = x(toString(y.caller), s, H)
105105 let J = v(toString(y.caller), s, H)
106106 let K = r(s, H)
107107 let L = p(u(s, H))
108108 if ((L != toString(y.caller)))
109109 then throw(("You cannot claim other's players " + H))
110110 else {
111111 let M = p(I)
112112 if ((M == ""))
113113 then throw("No pending operations for this asset")
114114 else {
115115 let N = getIntegerValue(this, J)
116116 if ((N > height))
117117 then throw((((("Building is not finished yet " + toString((N - height))) + " blocks remaining, it will take around ") + toString((N - height))) + " minutes"))
118118 else {
119119 let O = value(indexOf(g, H))
120120 let P = j[O]
121121 let Q = h[O]
122122 let E = invoke(Address(b), "Pay", [toString(y.caller), Q], nil)
123- let R = o(toString(y.caller))
124- let S = invoke(Address(c), "setUserPower", [toString(y.caller), (R + P)], nil)
125- let F = [IntegerEntry(K, Q), DeleteEntry(I), DeleteEntry(J)]
126- F
123+ if ((E == E))
124+ then {
125+ let R = o(toString(y.caller))
126+ let S = invoke(Address(c), "setUserPower", [toString(y.caller), (R + P)], nil)
127+ if ((S == S))
128+ then {
129+ let F = [IntegerEntry(K, Q), DeleteEntry(I), DeleteEntry(J)]
130+ F
131+ }
132+ else throw("Strict value is not equal to itself.")
133+ }
134+ else throw("Strict value is not equal to itself.")
127135 }
128136 }
129137 }
130138 }
131139
132140
133141
134142 @Callable(y)
135143 func transferOwnership (T,U,z) = if (if ((y.caller != d))
136144 then (y.caller != this)
137145 else false)
138146 then throw("Only the admin can perform this operation")
139147 else {
140148 let V = p((T + "_Owner"))
141149 let R = o(V)
142150 let P = j[value(indexOf(g, z))]
143151 let S = invoke(Address(c), "setUserPower", [V, (R - P)], nil)
144152 let W = o(U)
145153 let X = invoke(Address(c), "setUserPower", [U, (R + P)], nil)
146154 [StringEntry((T + "_Owner"), U)]
147155 }
148156
149157
150158
151159 @Callable(y)
152160 func destroyAssetAndTransfer (T,Y,z) = if (if ((y.caller != d))
153161 then (y.caller != this)
154162 else false)
155163 then throw("Only the admin can perform this operation")
156164 else {
157165 let V = p((T + "_Owner"))
158166 let Q = q(T)
159167 let E = invoke(Address(b), "transferCoins", [V, Y, Q], nil)
160168 let R = o(V)
161169 let P = j[value(indexOf(g, z))]
162170 let S = invoke(Address(c), "setUserPower", [toString(y.caller), (R - P)], nil)
163171 [DeleteEntry(T)]
164172 }
165173
166174

github/deemru/w8io/169f3d6 
45.67 ms