tx · 8CGHAZANzCRwTWXyganfFszhES2EmtUiHMBHy9kT5XiB

3MxudXNtrPExNtG9MsGV6e1kizuybgpiVq2:  -0.01000000 Waves

2024.06.02 11:02 [3132799] smart account 3MxudXNtrPExNtG9MsGV6e1kizuybgpiVq2 > SELF 0.00000000 Waves

{ "type": 13, "id": "8CGHAZANzCRwTWXyganfFszhES2EmtUiHMBHy9kT5XiB", "fee": 1000000, "feeAssetId": null, "timestamp": 1717314860160, "version": 2, "chainId": 84, "sender": "3MxudXNtrPExNtG9MsGV6e1kizuybgpiVq2", "senderPublicKey": "566MDwkhrEY8rqzckXLEr1KDf9FGLP6XpJMnbb68zZ9J", "proofs": [ "citwyEQbCe3L1BxBRYBrQdAP2gNHLF9eknMHYgyUGiXrWAzXW18BD49k9XtYnUKJZx5Y84uiv2FCCwpyKZiwfy5" ], "script": "base64:AAIFAAAAAAAAABsIAhIDCgEIEgQKAggEEgASBAoCAQgSBAoCBAgAAAADAAAAABliaWdJbnRIYXNoRGl2aXNvckNvaW5GTGlwCQAAbAAAAAYAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAAAAAFAAAABkhBTEZVUAAAAAAYYmlnSW50SGFzaERpdmlzb3JDb2luQmV0CQAAbAAAAAYAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAAAAAFAAAABkhBTEZVUAEAAAAKaXNOZWdhdGl2ZQAAAAEAAAABbgMJAABmAAAAAgAAAAAAAAAAAAUAAAABbgkAAGgAAAACBQAAAAFuAP//////////BQAAAAFuAAAABQAAAAFpAQAAAAhhZGRBZG1pbgAAAAEAAAAHYWRkcmVzcwQAAAADYWRtAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQiAAAAAQIAAAAFYWRtaW4JAAJZAAAAAQkBAAAAEUBleHRyTmF0aXZlKDEwNTgpAAAAAQIAAAAFYWRtaW4ICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl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Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleR3Lgf0=", "height": 3132799, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let bigIntHashDivisorCoinFLip = pow(10, 0, 17, 0, 0, HALFUP)
5+
6+let bigIntHashDivisorCoinBet = pow(10, 0, 17, 0, 0, HALFUP)
7+
8+func isNegative (n) = if ((0 > n))
9+ then (n * -1)
10+ else n
11+
12+
13+@Callable(i)
14+func addAdmin (address) = {
15+ let adm = if (isDefined(getString("admin")))
16+ then fromBase58String(getStringValue("admin"))
17+ else i.caller.bytes
18+ if (if ((i.caller.bytes == adm))
19+ then true
20+ else (i.caller.bytes == this.bytes))
21+ then [StringEntry("admin", address)]
22+ else throw("Error: Only administrator can call this function.")
23+ }
24+
25+
26+
27+@Callable(i)
28+func blockAddress (address,isBlock) = {
29+ let adm = if (isDefined(getString("admin")))
30+ then fromBase58String(getStringValue("admin"))
31+ else i.caller.bytes
32+ if (if ((i.caller.bytes == adm))
33+ then true
34+ else (i.caller.bytes == this.bytes))
35+ then [BooleanEntry(("address_blocked_" + address), isBlock)]
36+ else throw("Error: Only administrator can call this function.")
37+ }
38+
39+
40+
41+@Callable(i)
42+func addToken () = {
43+ let adm = if (isDefined(getString("admin")))
44+ then fromBase58String(getStringValue("admin"))
45+ else i.caller.bytes
46+ let tId = match i.payments[0].assetId {
47+ case t: ByteVector =>
48+ toBase58String(t)
49+ case _ =>
50+ "WAVES"
51+ }
52+ if (if ((i.caller.bytes == adm))
53+ then true
54+ else (i.caller.bytes == this.bytes))
55+ then [BooleanEntry(tId, true)]
56+ else throw("Error: Only administrator can call this function.")
57+ }
58+
59+
60+
61+@Callable(i)
62+func betToNumber (number,ref) = {
63+ let tId = match i.payments[0].assetId {
64+ case t: ByteVector =>
65+ toBase58String(t)
66+ case _ =>
67+ "WAVES"
68+ }
69+ if (isDefined(getString(("address_blocked_" + toBase58String(i.caller.bytes)))))
70+ then throw("Error: Your address is on the Waves Play blacklist.")
71+ else if (if ((100000 > i.payments[0].amount))
72+ then true
73+ else (i.payments[0].amount > 1000000000))
74+ then throw("Invalid Waves amount. Min value: 0.1 Waves. Max Value: 10 Waves")
75+ else if (if (!(isDefined(getBoolean(tId))))
76+ then (i.payments[0].assetId != unit)
77+ else false)
78+ then throw("Invalid assetId")
79+ else if (if ((0 >= number))
80+ then true
81+ else (number >= 99))
82+ then throw("Error: Invalid Number")
83+ else {
84+ let x = if (isDefined(getInteger((toBase58String(i.caller.bytes) + "_bets"))))
85+ then getIntegerValue((toBase58String(i.caller.bytes) + "_bets"))
86+ else 0
87+ let ref1 = if ((ref == ""))
88+ then toBase58String(this.bytes)
89+ else ref
90+ let toRef = ((i.payments[0].amount * 4) / 100)
91+ let lastTx = if (isDefined(getString("last_tx_bet")))
92+ then (isNegative(toInt(sha256(fromBase58String(getStringValue("last_tx_bet"))))) / bigIntHashDivisorCoinBet)
93+ else (isNegative(toInt(sha256(sha256(i.transactionId)))) / bigIntHashDivisorCoinBet)
94+ let txxz = (isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinBet)
95+ let f = if ((txxz > lastTx))
96+ then (txxz - lastTx)
97+ else (lastTx - txxz)
98+ let result = if ((f > number))
99+ then "win"
100+ else "loss"
101+ let transfr = if ((result == "win"))
102+ then (9900000000 / (99 - number))
103+ else 0
104+ let transfer = ((i.payments[0].amount * transfr) / 100000000)
105+ let txPay = if ((transfer == 0))
106+ then IntegerEntry(((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)), i.payments[0].amount)
107+ else ScriptTransfer(Address(i.caller.bytes), transfer, unit)
108+ let reftx = if ((ref1 == toBase58String(this.bytes)))
109+ then IntegerEntry((((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)) + "_ref"), toRef)
110+ else ScriptTransfer(Address(fromBase58String(ref1)), toRef, unit)
111+[IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_mult"), transfr), IntegerEntry((toBase58String(i.caller.bytes) + "_bets"), (x + 1)), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_value"), number), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_result_number"), f), StringEntry(((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))), toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_ref"), ref1), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_block"), height), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_transfer_final"), transfer), StringEntry("last_tx_coinflip", toBase58String(i.transactionId)), reftx, StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_result"), result), txPay]
112+ }
113+ }
114+
115+
116+
117+@Callable(i)
118+func betCoinFlip (isHeads,ref) = {
119+ let tId = match i.payments[0].assetId {
120+ case t: ByteVector =>
121+ toBase58String(t)
122+ case _ =>
123+ "WAVES"
124+ }
125+ if (isDefined(getString(("address_blocked_" + toBase58String(i.caller.bytes)))))
126+ then throw("Error: Your address is on the Waves Play blacklist.")
127+ else if (if ((100000 > i.payments[0].amount))
128+ then true
129+ else (i.payments[0].amount > 1000000000))
130+ then throw("Invalid Waves amount. Min value: 0.1 Waves. Max Value: 10 Waves")
131+ else if (if (!(isDefined(getBoolean(tId))))
132+ then (i.payments[0].assetId != unit)
133+ else false)
134+ then throw("Invalid assetId")
135+ else {
136+ let x = if (isDefined(getInteger((toBase58String(i.caller.bytes) + "_bets"))))
137+ then getIntegerValue((toBase58String(i.caller.bytes) + "_bets"))
138+ else 0
139+ let ref1 = if ((ref == ""))
140+ then toBase58String(this.bytes)
141+ else ref
142+ let toRef = ((i.payments[0].amount * 4) / 100)
143+ let lastTxx = if (isDefined(getString("last_tx_bet")))
144+ then (isNegative(toInt(sha256(fromBase58String(getStringValue("last_tx_bet"))))) / bigIntHashDivisorCoinFLip)
145+ else (isNegative(toInt(sha256(sha256(i.transactionId)))) / bigIntHashDivisorCoinFLip)
146+ let lastTx = if ((lastTxx > 10))
147+ then (lastTxx / 10)
148+ else lastTxx
149+ let txxz = if (((isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip) > 10))
150+ then ((isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip) / 10)
151+ else (isNegative(toInt(sha256(i.transactionId))) / bigIntHashDivisorCoinFLip)
152+ let f = if ((txxz > lastTx))
153+ then (txxz - lastTx)
154+ else (lastTx - txxz)
155+ let result_w = if (if (if (if (if ((f == 0))
156+ then true
157+ else (f == 2))
158+ then true
159+ else (f == 4))
160+ then true
161+ else (f == 6))
162+ then true
163+ else (f == 8))
164+ then "heads"
165+ else "tails"
166+ let result = if (if (if (isHeads)
167+ then if (if (if (if ((f == 0))
168+ then true
169+ else (f == 2))
170+ then true
171+ else (f == 4))
172+ then true
173+ else (f == 6))
174+ then true
175+ else (f == 8)
176+ else false)
177+ then true
178+ else if (!(isHeads))
179+ then if (if (if (if ((f == 1))
180+ then true
181+ else (f == 3))
182+ then true
183+ else (f == 5))
184+ then true
185+ else (f == 7))
186+ then true
187+ else (f == 9)
188+ else false)
189+ then "win"
190+ else "loss"
191+ let transfer = if ((result == "win"))
192+ then (i.payments[0].amount * 2)
193+ else 0
194+ let txPay = if ((transfer == 0))
195+ then IntegerEntry(((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)), i.payments[0].amount)
196+ else ScriptTransfer(Address(i.caller.bytes), (i.payments[0].amount * 2), unit)
197+ let reftx = if ((ref1 == toBase58String(this.bytes)))
198+ then IntegerEntry((((toBase58String(this.bytes) + "_") + toBase58String(i.caller.bytes)) + "_ref"), toRef)
199+ else ScriptTransfer(Address(fromBase58String(ref1)), toRef, unit)
200+[IntegerEntry((toBase58String(i.caller.bytes) + "_bets"), (x + 1)), BooleanEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_value"), isHeads), StringEntry(((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))), toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_ref"), ref1), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_block"), height), StringEntry("last_tx_coinflip", toBase58String(i.transactionId)), StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_heads_or_tails"), result_w), reftx, StringEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_result"), result), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_f"), f), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_step1"), txxz), IntegerEntry((((toBase58String(i.caller.bytes) + "_bet_") + toString((x + 1))) + "_step2"), lastTx), txPay]
201+ }
202+ }
203+
204+
205+@Verifier(tx)
206+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
207+

github/deemru/w8io/026f985 
20.63 ms