tx · CBf5MMqUGzr2W74fyEG1D7ERGR6V8RST6qRAejNtfMCb

3N2tusqAtDctK8iSTXS6F9rimmftmSuwLUX:  -0.05000000 Waves

2019.10.29 15:42 [741448] smart account 3N2tusqAtDctK8iSTXS6F9rimmftmSuwLUX > SELF 0.00000000 Waves

{ "type": 13, "id": "CBf5MMqUGzr2W74fyEG1D7ERGR6V8RST6qRAejNtfMCb", "fee": 5000000, "feeAssetId": null, "timestamp": 1572352949755, "version": 1, "sender": "3N2tusqAtDctK8iSTXS6F9rimmftmSuwLUX", "senderPublicKey": "ACfUG5PwG2GssMuyEwVEhkYAbbbP1geSHR8XoNxLyu6V", "proofs": [ "2mRLCZjjoTZmJoAiaiQPp11V7WY4y76bXdAtnzNFpyFgxoPeg4D4dbjvrDpPbsXX2AzdoyD7GPKr9A7zekXMPN9M" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAiAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBZzRkQVI2WGJCREFTOWhyL0VqM2RKdjZGZmM0NjZ4L21PR01XVTNsckFCczNxYThCSG11Skdua2ZicEVmMnZBd1lUT1dQdnZ6Zk0xME9CYmZsb1N5cTNjOU1LdnlUZTFsdUJMR3FXNHZaVVhJeXZTZ3oxbGl5VVZlZklReTNkeUY5amJlVFpiQzBiYmNULzdPM0RFTCswMXo2QStyRENhY1NaMGxHb2xTUTZBbmhMeHpJa1ZwT1FKYnJCbUMreCtadVpQQ01Xekp5bmQ1YWVPbjdqYWovbWtSVnl4ZTZnLzBPaFd6NE5paVpYZXVNUkIrOG1LeTBmV0QvVWxJbFpXSHNBUzJabXJrWEtxakxxMC8wd3I4SUxKa3pualNxZG5JNUliamczdVFyai80QU4raTlyMjhhUTczL1prUHRZNVNidzBBT2lBQkJ1N2dIbXE5YXlWeFpRSURBUUFCAAAAAA9HQU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UAAAAOU1RBVEVTVUJNSVRURUQFAAAABnBhQ29pbgUAAAAPcGxheWVyQVB1YktleTU4BQAAAAdwYXlUeXBlCAUAAAAHcGF5bWVudAAAAAZhbW91bnQFAAAABndpbkFtdAIAAAAAAgAAAAACAAAAAAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAD0dBTUVTQ09VTlRFUktFWQUAAAAKbmV3R2FtZU51bQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAAtnYW1lRGF0YVN0cgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAABaQEAAAATY2FuY2VsQ29pbkNoYWxsZW5nZQAAAAEAAAAGZ2FtZUlkBAAAAApyYXdEYXRhU3RyCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzBQAAAAZnYW1lSWQJAAACAAAAAQUAAAAKcmF3RGF0YVN0cgAAAABtwoqp", "chainId": 84, "height": 741448, "spentComplexity": 0 } View: original | compacted Prev: E9K8M7KeZ2xZ9DLpZBrZHq5cygVAmtNXsJgVPkfNx88A Next: 7vyiQGc9nm7XvfnvdrNWi1QMZAqp3yLmbv71K4Dw4T9b Diff:
OldNewDifferences
147147
148148 func am (an) = {
149149 let ao = getStringValue(this, an)
150- throw(ao)
150+ ao
151151 }
152152
153153
194194
195195 @Callable(as)
196196 func cancelCoinChallenge (an) = {
197- let ax = am(an)
198- throw("asdasd")
197+ let ao = getStringValue(this, an)
198+ throw(ao)
199199 }
200200
201201
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg4dAR6XbBDAS9hr/Ej3dJv6Ffc466x/mOGMWU3lrABs3qa8BHmuJGnkfbpEf2vAwYTOWPvvzfM10OBbfloSyq3c9MKvyTe1luBLGqW4vZUXIyvSgz1liyUVefIQy3dyF9jbeTZbC0bbcT/7O3DEL+01z6A+rDCacSZ0lGolSQ6AnhLxzIkVpOQJbrBmC+x+ZuZPCMWzJynd5aeOn7jaj/mkRVyxe6g/0OhWz4NiiZXeuMRB+8mKy0fWD/UlIlZWHsAS2ZmrkXKqjLq0/0wr8ILJkznjSqdnI5Ibjg3uQrj/4AN+i9r28aQ73/ZkPtY5Sbw0AOiABBu7gHmq9ayVxZQIDAQAB")
55
66 let b = "$GAME_NUM"
77
88 let c = base58'23vgV9p9pD83A7CFbsDEc4zjanep7UeFo4ZRS6oGorhv'
99
1010 let d = 4
1111
1212 let e = 2
1313
1414 let f = 100000000
1515
1616 let g = "SUBMITTED"
1717
1818 let h = "ACCEPTED"
1919
2020 let i = "FINISHED"
2121
2222 let j = "CANCELED"
2323
2424 let k = "RED"
2525
2626 let l = "BLUE"
2727
2828 let m = ((1 * f) / 2)
2929
3030 let n = (100 * f)
3131
3232 let o = 0
3333
3434 let p = 1
3535
3636 let q = 2
3737
3838 let r = 3
3939
4040 let s = 4
4141
4242 let t = 5
4343
4444 let u = 6
4545
4646 let v = 7
4747
4848 let w = 8
4949
5050 func x () = {
5151 let y = {
5252 let z = getInteger(this, b)
5353 if ($isInstanceOf(z, "Int"))
5454 then {
5555 let A = z
5656 A
5757 }
5858 else 0
5959 }
6060 (y + 1)
6161 }
6262
6363
6464 func B (C,D,E) = {
6565 let F = {
6666 let z = getBinary(this, "lastPlay")
6767 if ($isInstanceOf(z, "ByteVector"))
6868 then {
6969 let G = z
7070 G
7171 }
7272 else if ($isInstanceOf(z, "Unit"))
7373 then {
7474 let H = z
7575 base58'2ee4oFDYriWJ9EMeR'
7676 }
7777 else throw()
7878 }
7979 let I = (((((F + C.transactionId) + C.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
8080 (((toInt(sha256(I)) % 1000) % ((D - E) + 1)) + 1)
8181 }
8282
8383
8484 func J (K) = if ((K.assetId == c))
8585 then "WBET"
8686 else "WAVES"
8787
8888
8989 func L (M) = if ((M == "WBET"))
9090 then c
9191 else unit
9292
9393
9494 func N (O) = {
9595 let G = size(O)
9696 if ((G == 0))
9797 then throw("Parameter size must be greater then 0")
9898 else if ((G > 99))
9999 then throw("Parameter size must be less then 100")
100100 else if ((10 > G))
101101 then (("0" + toString(G)) + O)
102102 else (toString(G) + O)
103103 }
104104
105105
106106 func P (Q,R,S,T,U,V,W,X,Y) = {
107107 let Z = ((((((((((N(Q) + "_") + N(R)) + "_") + N(S)) + "_") + N(T)) + "_") + N(toString(U))) + "_") + N(toString(V)))
108108 if (if (if ((W == ""))
109109 then true
110110 else (X == ""))
111111 then true
112112 else (Y == ""))
113113 then Z
114114 else ((((((Z + "_") + N(W)) + "_") + N(X)) + "_") + N(Y))
115115 }
116116
117117
118118 func aa (ab) = if ((size(ab) > 0))
119119 then drop(ab, 1)
120120 else ab
121121
122122
123123 func ac (ab) = {
124124 let G = size(ab)
125125 if ((G > 0))
126126 then {
127127 let ad = parseIntValue(take(ab, 2))
128128 let ae = take(drop(ab, 2), ad)
129129 let af = drop(ab, (ad + 2))
130130 let ag = aa(af)
131131 [ae, ag]
132132 }
133133 else throw("Empty string was passed into parseNextAttribute func")
134134 }
135135
136136
137137 func ah (ai) = {
138138 let Q = ac(ai)
139139 let aj = ac(Q[1])
140140 let ak = ac(aj[1])
141141 let T = ac(ak[1])
142142 let al = ac(T[1])
143143 let V = ac(al[1])
144144 [Q[0], aj[0], ak[0], T[0], al[0], V[0]]
145145 }
146146
147147
148148 func am (an) = {
149149 let ao = getStringValue(this, an)
150- throw(ao)
150+ ao
151151 }
152152
153153
154154 func ap (aq,ar,J) = if (if ((ar != k))
155155 then (ar != l)
156156 else false)
157157 then throw("Invalid play, change your bet to RED or BLUE coin. Game aborted.")
158158 else if (if ((J == "WBET"))
159159 then (n > aq)
160160 else false)
161161 then throw(("The minimum bet on Wbet is " + toString((n / f))))
162162 else if (if ((J == "WAVES"))
163163 then (m > aq)
164164 else false)
165165 then throw(("The minimum bet on Waves is " + toString((m / f))))
166166 else (((aq * 2) * (100 - (d + e))) / 100)
167167
168168
169169 @Callable(as)
170170 func playCoin (aj) = {
171171 let an = toBase58String(as.transactionId)
172172 let at = isDefined(getString(this, an))
173173 let K = extract(as.payment)
174174 let au = isDefined(as.feeAssetId)
175175 if (if ((K.assetId != assetInfo(base58'WAVES')))
176176 then (K.assetId != c)
177177 else false)
178178 then throw("Payment should be in Wbet or Waves. Game aborted.")
179179 else if (au)
180180 then throw("Transaction's fee must be in Waves. Game aborted.")
181181 else if (at)
182182 then throw("Passed gameId had been used before. Game aborted.")
183183 else {
184184 let av = x()
185185 let S = toBase58String(as.callerPublicKey)
186186 let T = J(K)
187187 let V = ap(K.amount, aj, T)
188188 let aw = P(g, aj, S, T, K.amount, V, "", "", "")
189189 ScriptResult(WriteSet([DataEntry(b, av), DataEntry(an, aw)]), TransferSet(nil))
190190 }
191191 }
192192
193193
194194
195195 @Callable(as)
196196 func cancelCoinChallenge (an) = {
197- let ax = am(an)
198- throw("asdasd")
197+ let ao = getStringValue(this, an)
198+ throw(ao)
199199 }
200200
201201

github/deemru/w8io/026f985 
74.97 ms