tx · JCQZwPvbiaA5PsjzFtxuU73eHxcpTtj5TMkE9UmcmxVw

3Mu2nqkKHbGJRAki6gPoBaLE5RSiJN1m1DC:  -0.01500000 Waves

2020.04.29 20:03 [976332] smart account 3Mu2nqkKHbGJRAki6gPoBaLE5RSiJN1m1DC > SELF 0.00000000 Waves

{ "type": 13, "id": "JCQZwPvbiaA5PsjzFtxuU73eHxcpTtj5TMkE9UmcmxVw", "fee": 1500000, "feeAssetId": null, "timestamp": 1588179919600, "version": 1, "sender": "3Mu2nqkKHbGJRAki6gPoBaLE5RSiJN1m1DC", "senderPublicKey": "Fcmt4Df1v4zeGFhgMBx3PFRDq8BYMsKQbkGBhF1jrXZy", "proofs": [ "3JwvRnhWhqZFu64d8M9p8jLJi5LtoGPBh6XcQMx3LusdVAHguwyyYN322ghkhJyMgL5afBhW4rxo6dok5KXNUPYY" ], "script": "base64:AAIDAAAAAAAAAA0IARIDCgEIEgQKAggCAAAAKQAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQW1wdVhjSS9vNHBJQjV5d3Y5RE9PR2FwVEJVd1JWbE0vNitINmhGZWxPWHRrcndZL1lJdG1QeEVEcHo3ckFlclFQUWU5dERQRWFBdi9HbmxFenR5Yk9GWGd1OUR6RGU4WW9NUkQxdmFrZ29BY29nbWJZNThRRDZLTWo1SGtvVmoveVROSWM5c3pqNXFoSWxyQWRtYjNLTEw2aFFVN3k4K0pqNjlCV1ZQc2FRZ2tzcFNkZVl0YjF0SFFjN3Q5NW43T1o1NnIyQTdHMytiUWY2blNNa1BrQWhJckVwYkNtNThvaUdCY3pkVGQvTHFGU1ZvdFpzYkw3WWg2U0hMZm5IZUQrUWdjZkpybmFtOE9ITUdKRUpUUlhqSUxlSEdqbFJDUDhvVnBpb0hyeTFTMnhQeDVzVnpJbTJNTStDelllbkFHbG8wajI2YXRCaGlVTG9Ud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lYXNlZFJlc2VydmVzBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDAEAAAAB2Fzc2V0SWQJAQAAABV2YWxpZGF0ZUFuZEdldEFzc2V0SWQAAAABCAUAAAADdHR4AAAAB2Fzc2V0SWQJAABnAAAAAgkAAGUAAAACCQAD6wAAAAIFAAAABHRoaXMIBQAAAAN0dHgAAAAHYXNzZXRJZAgFAAAAA3R0eAAAAAZhbW91bnQJAQAAAAhnZXRJbnRPcgAAAAIJAAGRAAAAAgUAAAAOUkVTRVJWQVRJT05LRVkFAAAAB2Fzc2V0SWQAAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAANzdHgFAAAAByRtYXRjaDADCQAAAAAAAAIJAQAAAAhnZXRJbnRPcgAAAAIJAAGRAAAAAgUAAAAOUkVTRVJWQVRJT05LRVkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAgkBAAAACGdldEludE9yAAAAAgkAAZEAAAACBQAAAA5SRVNFUlZBVElPTktFWQAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAcHB+waxSQ=", "chainId": 84, "height": 976332, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmpuXcI/o4pIB5ywv9DOOGapTBUwRVlM/6+H6hFelOXtkrwY/YItmPxEDpz7rAerQPQe9tDPEaAv/GnlEztybOFXgu9DzDe8YoMRD1vakgoAcogmbY58QD6KMj5HkoVj/yTNIc9szj5qhIlrAdmb3KLL6hQU7y8+Jj69BWVPsaQgkspSdeYtb1tHQc7t95n7OZ56r2A7G3+bQf6nSMkPkAhIrEpbCm58oiGBczdTd/LqFSVotZsbL7Yh6SHLfnHeD+QgcfJrnam8OHMGJEJTRXjILeHGjlRCP8oVpioHry1S2xPx5sVzIm2MM+CzYenAGlo0j26atBhiULoTulwD3pQIDAQAB")
5+
6+let b = addressFromStringValue("3N4Aib5iubWiGMzdTh6wWiVDVbo32oeVUmH")
7+
8+let c = 4320
9+
10+let d = 1
11+
12+let e = 2
13+
14+let f = 4
15+
16+let g = 8
17+
18+let h = 14
19+
20+let i = [d, e, f, g, h]
21+
22+let j = 100000000
23+
24+let k = 1000000
25+
26+let l = [j, k]
27+
28+let m = [unit, fromBase58String("3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC")]
29+
30+let n = [((5 * j) / 1000), (((5 * k) / 1000) * 10)]
31+
32+func o (p) = n[p]
33+
34+
35+let q = 10000
36+
37+let r = 19000
38+
39+let s = 0
40+
41+let t = 1
42+
43+let u = 2
44+
45+let v = 3
46+
47+let w = 4
48+
49+let x = 5
50+
51+let y = ["$RESERVED_AMOUNT_WAVES", "$RESERVED_AMOUNT_USDN"]
52+
53+let z = "$GAME_NUM"
54+
55+let A = "SUBMITTED"
56+
57+let B = "WON"
58+
59+let C = "LOST"
60+
61+func D (E,F) = if (isDefined(getInteger(this, E)))
62+ then getIntegerValue(this, E)
63+ else F
64+
65+
66+func G (E,H) = DataEntry(E, H)
67+
68+
69+func I (E) = G(E, (D(E, -1) + 1))
70+
71+
72+func J (E,K) = G(E, (D(E, 0) + K))
73+
74+
75+func L (M,p) = {
76+ let N = (D(y[p], 0) + M)
77+ if ((N > wavesBalance(this)))
78+ then throw("Insufficient funds on Dice Roller account. Transaction was rejected for your safety.")
79+ else N
80+ }
81+
82+
83+func O (P,p,M) = if ((0 > (D(y[p], 0) - M)))
84+ then throw("Invalid Dice Roller account state - reserved amount is less than 0")
85+ else J(y[p], -(M))
86+
87+
88+func Q (p) = if ((p == m[0]))
89+ then 0
90+ else if ((p == m[1]))
91+ then 1
92+ else throw("Invalid payment asset")
93+
94+
95+func R (S,p,T) = {
96+ let U = size(T)
97+ let V = o(p)
98+ func W (X,Y) = if (X)
99+ then true
100+ else (S == ((Y * l[p]) + V))
101+
102+ if (!({
103+ let Z = i
104+ let aa = size(Z)
105+ let ab = false
106+ if ((aa == 0))
107+ then ab
108+ else {
109+ let ac = W(ab, Z[0])
110+ if ((aa == 1))
111+ then ac
112+ else {
113+ let ad = W(ac, Z[1])
114+ if ((aa == 2))
115+ then ad
116+ else {
117+ let ae = W(ad, Z[2])
118+ if ((aa == 3))
119+ then ae
120+ else {
121+ let af = W(ae, Z[3])
122+ if ((aa == 4))
123+ then af
124+ else {
125+ let ag = W(af, Z[4])
126+ if ((aa == 5))
127+ then ag
128+ else {
129+ let ah = W(ag, Z[5])
130+ throw("List size exceed 5")
131+ }
132+ }
133+ }
134+ }
135+ }
136+ }
137+ }))
138+ then throw("Bet amount is not valid")
139+ else if ((parseInt(T) == unit))
140+ then throw("Invalid player's choice")
141+ else if ((U != 1))
142+ then throw("Invalid length of player's choice")
143+ else {
144+ let ai = (S - V)
145+ ((ai * r) / q)
146+ }
147+ }
148+
149+
150+func aj (P,ak) = {
151+ let al = rsaVerify(SHA256, toBytes(P), ak, a)
152+ if (!(al))
153+ then throw("Invalid RSA signature")
154+ else {
155+ let am = (toInt(sha256(ak)) % 2)
156+ let an = if ((0 > am))
157+ then (-1 * am)
158+ else am
159+ toString(an)
160+ }
161+ }
162+
163+
164+func ao (T,ap) = {
165+ let aq = size(T)
166+ if ((aq == 1))
167+ then (T == ap)
168+ else false
169+ }
170+
171+
172+func ar (as,T,at,au,M,p,av) = (((((((((((as + "_") + T) + "_") + at) + "_") + toString(au)) + "_") + toString(M)) + "_") + toString(p)) + (if ((av == ""))
173+ then ""
174+ else ("_" + av)))
175+
176+
177+func aw (P) = split({
178+ let ax = getString(this, P)
179+ if ($isInstanceOf(ax, "String"))
180+ then {
181+ let ay = ax
182+ ay
183+ }
184+ else throw((("Game: " + P) + " not found."))
185+ }, "_")
186+
187+
188+func az (P,aA,M,p,aB,aC,aD) = {
189+ let aE = [aD]
190+ let aF = [ScriptTransfer(aA, M, m[p])]
191+ if (aC)
192+ then {
193+ let aG = (aB + "_TIMEOUT")
194+ let aH = DataEntry(P, aG)
195+ ScriptResult(WriteSet(aH :: aE), TransferSet(aF))
196+ }
197+ else {
198+ let aH = DataEntry(P, aB)
199+ ScriptResult(WriteSet(aH :: aE), TransferSet(aF))
200+ }
201+ }
202+
203+
204+@Callable(aI)
205+func bet (T) = {
206+ let P = toBase58String(aI.transactionId)
207+ if ((aI.payment == unit))
208+ then throw("No payment")
209+ else if (isDefined(getString(this, P)))
210+ then throw((("Bet for: " + P) + " was already made."))
211+ else {
212+ let aJ = extract(aI.payment)
213+ let p = Q(aJ.assetId)
214+ let V = o(p)
215+ let M = R(aJ.amount, p, T)
216+ let aK = isDefined(getString(this, P))
217+ let at = toBase58String(aI.callerPublicKey)
218+ let aL = ar(A, T, at, height, M, p, "")
219+ ScriptResult(WriteSet([DataEntry(y[p], L(M, p)), I(z), DataEntry(P, aL)]), TransferSet([ScriptTransfer(b, V, unit)]))
220+ }
221+ }
222+
223+
224+
225+@Callable(aI)
226+func withdraw (P,ak) = {
227+ let aH = aw(P)
228+ let as = aH[s]
229+ let T = aH[t]
230+ let au = parseIntValue(aH[v])
231+ let M = parseIntValue(aH[w])
232+ let p = parseIntValue(aH[x])
233+ let at = aH[u]
234+ let aA = addressFromPublicKey(fromBase58String(at))
235+ let aC = ((height - au) > c)
236+ let aD = O(P, p, M)
237+ if ((as != A))
238+ then throw("Invalid game state for passed gameId")
239+ else if (aC)
240+ then {
241+ let ap = take(T, 1)
242+ let aB = ar(B, T, at, au, M, p, ap)
243+ az(P, aA, M, p, aB, aC, aD)
244+ }
245+ else {
246+ let ap = aj(P, ak)
247+ if (ao(T, ap))
248+ then {
249+ let aB = ar(B, T, at, au, M, p, ap)
250+ az(P, aA, M, p, aB, aC, aD)
251+ }
252+ else {
253+ let aB = ar(C, T, at, au, M, p, ap)
254+ WriteSet([DataEntry(P, aB), aD])
255+ }
256+ }
257+ }
258+
259+
260+@Verifier(aM)
261+func aN () = if (sigVerify(aM.bodyBytes, aM.proofs[0], aM.senderPublicKey))
262+ then {
263+ let ax = aM
264+ if ($isInstanceOf(ax, "TransferTransaction"))
265+ then {
266+ let aO = ax
267+ let p = Q(aO.assetId)
268+ ((assetBalance(this, aO.assetId) - aO.amount) >= D(y[p], 0))
269+ }
270+ else if ($isInstanceOf(ax, "SetScriptTransaction"))
271+ then {
272+ let aP = ax
273+ if ((D(y[0], 0) == 0))
274+ then (D(y[1], 0) == 0)
275+ else false
276+ }
277+ else false
278+ }
279+ else false
280+

github/deemru/w8io/026f985 
20.74 ms