tx · EUaAFJ5dXWhQUrMS4QcpFEcMhfYPS2HyF5xYC6Q1k84p

3MtKQXaiKQxSTRPpa8GjJ5zE7mE992eBrGu:  -0.05000000 Waves

2019.11.02 08:01 [746792] smart account 3MtKQXaiKQxSTRPpa8GjJ5zE7mE992eBrGu > SELF 0.00000000 Waves

{ "type": 13, "id": "EUaAFJ5dXWhQUrMS4QcpFEcMhfYPS2HyF5xYC6Q1k84p", "fee": 5000000, "feeAssetId": null, "timestamp": 1572670875364, "version": 1, "sender": "3MtKQXaiKQxSTRPpa8GjJ5zE7mE992eBrGu", "senderPublicKey": "2vmjFmSn7wGYrffwrNFgTN6j9CATDKwa8t8KAXWe2HVW", "proofs": [ "j3J63BoNmMvSNupJYBRCbXXF9ZjGp1Nr7XBLuqNpMtuzuJ4TVHS4dKHjeep4ATYrRABCydz6Bg7YBsmJ2fqSJ8c" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAJAAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWc0ZEFSNlhiQkRBUzloci9FajNkSnY2RmZjNDY2eC9tT0dNV1UzbHJBQnMzcWE4QkhtdUpHbmtmYnBFZjJ2QXdZVE9XUHZ2emZNMTBPQmJmbG9TeXEzYzlNS3Z5VGUxbHVCTEdxVzR2WlVYSXl2U2d6MWxpeVVWZWZJUXkzZHlGOWpiZVRaYkMwYmJjVC83TzNERUwrMDF6NkErckRDYWNTWjBsR29sU1E2QW5oTHh6SWtWcE9RSmJyQm1DK3grWnVaUENNV3pKeW5kNWFlT243amFqL21rUlZ5eGU2Zy8wT2hXejROaWlaWGV1TVJCKzhtS3kwZldEL1VsSWxaV0hzQVMyWm1ya1hLcWpMcTAvMHdyOElMSmt6bmpTcWRuSTVJYmpnM3VRcmovNEFOK2k5cjI4YVE3My9aa1B0WTVTYncwQU9pQUJCdTdnSG1xOWF5V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wZQQAAAALZ2FtZURhdGFTdHIJAQAAABFGb3JtYXRHYW1lRGF0YVN0cgAAAAkFAAAADlNUQVRFU1VCTUlUVEVEBQAAAAZwYUNvaW4FAAAAD3BsYXllckFQdWJLZXk1OAUAAAAHcGF5VHlwZQgFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAAAZ3aW5BbXQCAAAAAAIAAAAAAgAAAAAJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAA9HQU1FU0NPVU5URVJLRVkFAAAACm5ld0dhbWVOdW0JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABmdhbWVJZAUAAAALZ2FtZURhdGFTdHIFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAIVxDMI=", "chainId": 84, "height": 746792, "spentComplexity": 0 } View: original | compacted Prev: none Next: 5KQSfMnCZcDrBcZ4DeU2n8vybR1BSpHYXas8nugp8ca7 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB")
5+
6+let b = "$GAME_NUM"
7+
8+let c = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
9+
10+let d = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
11+
12+let e = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
13+
14+let f = 4
15+
16+let g = 2
17+
18+let h = 100000000
19+
20+let i = "SUBMITTED"
21+
22+let j = "ACCEPTED"
23+
24+let k = "FINISHED"
25+
26+let l = "CANCELED"
27+
28+let m = "RED"
29+
30+let n = "BLUE"
31+
32+let o = ((1 * h) / 4)
33+
34+let p = (100 * h)
35+
36+let q = 0
37+
38+let r = 1
39+
40+let s = 2
41+
42+let t = 3
43+
44+let u = 4
45+
46+let v = 5
47+
48+let w = 6
49+
50+let x = 7
51+
52+let y = 8
53+
54+func z () = {
55+ let A = {
56+ let B = getInteger(this, b)
57+ if ($isInstanceOf(B, "Int"))
58+ then {
59+ let C = B
60+ C
61+ }
62+ else 0
63+ }
64+ (A + 1)
65+ }
66+
67+
68+func D (E,F) = {
69+ let G = rsaVerify(SHA256, toBytes(E), F, a)
70+ if (G)
71+ then {
72+ let H = (toInt(sha256(F)) % 100)
73+ if ((0 > H))
74+ then ((-1 * H) + 1)
75+ else (H + 1)
76+ }
77+ else throw("Invalid RSA signature")
78+ }
79+
80+
81+func I (J) = if ((J.assetId == c))
82+ then "WBET"
83+ else "WAVES"
84+
85+
86+func K (L) = if ((L == "WBET"))
87+ then c
88+ else unit
89+
90+
91+func M (N) = {
92+ let O = size(N)
93+ if ((O == 0))
94+ then throw("Parameter size must be greater then 0")
95+ else if ((O > 99))
96+ then throw("Parameter size must be less then 100")
97+ else if ((10 > O))
98+ then (("0" + toString(O)) + N)
99+ else (toString(O) + N)
100+ }
101+
102+
103+func P (Q,R,S,T,U,V,W,X,Y) = {
104+ let Z = ((((((((((M(Q) + "_") + M(R)) + "_") + M(S)) + "_") + M(T)) + "_") + M(toString(U))) + "_") + M(toString(V)))
105+ if (if (if ((W == ""))
106+ then true
107+ else (X == ""))
108+ then true
109+ else (Y == ""))
110+ then Z
111+ else ((((((Z + "_") + M(W)) + "_") + M(X)) + "_") + M(Y))
112+ }
113+
114+
115+func aa (ab) = if ((size(ab) > 0))
116+ then drop(ab, 1)
117+ else ab
118+
119+
120+func ac (ab) = {
121+ let O = size(ab)
122+ if ((O > 0))
123+ then {
124+ let ad = parseIntValue(take(ab, 2))
125+ let ae = take(drop(ab, 2), ad)
126+ let af = drop(ab, (ad + 2))
127+ let ag = aa(af)
128+[ae, ag]
129+ }
130+ else throw("Empty string was passed into parseNextAttribute func")
131+ }
132+
133+
134+func ah (ai) = {
135+ let Q = ac(ai)
136+ let aj = ac(Q[1])
137+ let ak = ac(aj[1])
138+ let T = ac(ak[1])
139+ let al = ac(T[1])
140+ let V = ac(al[1])
141+[Q[0], aj[0], ak[0], T[0], al[0], V[0]]
142+ }
143+
144+
145+func am (E) = {
146+ let an = {
147+ let B = getString(this, E)
148+ if ($isInstanceOf(B, "String"))
149+ then {
150+ let ao = B
151+ ao
152+ }
153+ else throw(("Couldn't find game by " + E))
154+ }
155+ ah(an)
156+ }
157+
158+
159+func ap (aq,ar,I) = if (if ((ar != m))
160+ then (ar != n)
161+ else false)
162+ then throw("Invalid play, change your bet to RED or BLUE coin. Game aborted.")
163+ else if (if ((I == "WBET"))
164+ then (p > aq)
165+ else false)
166+ then throw(("The minimum bet on Wbet is " + toString((p / h))))
167+ else if (if ((I == "WAVES"))
168+ then (o > aq)
169+ else false)
170+ then throw(("The minimum bet on Waves is " + toString((o / h))))
171+ else (((aq * 2) * (100 - (f + g))) / 100)
172+
173+
174+@Callable(as)
175+func playCoin (aj) = {
176+ let E = toBase58String(as.transactionId)
177+ let at = isDefined(getString(this, E))
178+ let J = extract(as.payment)
179+ let au = isDefined(as.feeAssetId)
180+ if (if ((J.assetId != assetInfo(base58'WAVES')))
181+ then (J.assetId != c)
182+ else false)
183+ then throw("Payment should be in Wbet or Waves. Game aborted.")
184+ else if (au)
185+ then throw("Transaction's fee must be in Waves. Game aborted.")
186+ else if (at)
187+ then throw("Passed gameId had been used before. Game aborted.")
188+ else {
189+ let av = z()
190+ let S = toBase58String(as.callerPublicKey)
191+ let T = I(J)
192+ let V = ap(J.amount, aj, T)
193+ let aw = P(i, aj, S, T, J.amount, V, "", "", "")
194+ ScriptResult(WriteSet([DataEntry(b, av), DataEntry(E, aw)]), TransferSet(nil))
195+ }
196+ }
197+
198+

github/deemru/w8io/026f985 
23.39 ms