tx · oVoD2rc8jChjWeW9JQNHrTekHjWpMk1cwTYKeVoyBSg

3MvyLTBj2k8xayyFD5CePoXu5ybKPEX84Au:  -0.01000000 Waves

2022.10.22 15:33 [2283609] smart account 3MvyLTBj2k8xayyFD5CePoXu5ybKPEX84Au > SELF 0.00000000 Waves

{ "type": 13, "id": "oVoD2rc8jChjWeW9JQNHrTekHjWpMk1cwTYKeVoyBSg", "fee": 1000000, "feeAssetId": null, "timestamp": 1666442011128, "version": 2, "chainId": 84, "sender": "3MvyLTBj2k8xayyFD5CePoXu5ybKPEX84Au", "senderPublicKey": "Gfk22xNMNYFvTwifWwCzLx4Vewoy8Y5ijhtGEoyNuYFD", "proofs": [ "4xwwZjkhgdTRg3EtphS2Sj37CYA2in9C7gJgMKXznxW5eYULtw2NcxTKgTYjc23PE3t4qDnaY42nMf1dnsPGBv94" ], "script": "base64:AAIDAAAAAAAAAA4IARIFCgMIAQESAwoBCAAAAAQAAAAABm9yYWNsZQkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAAA8kT1JBQ0xFX0FERFJFU1MAAAAABm1pbkJldAAAAAAAAvrwgAAAAAAJbWF4U3VtQmV0AAAAAAA7msoAAQAAAA1jYWxjV2luQW1vdW50AAAAAwAAAAR0aGlzAAAAA2tleQAAAAVrb2VmZgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAkAAGgAAAACBQAAAAFhBQAAAAVrb2VmZgAAAAAAAAAAAAAAAAIAAAABaQEAAAADYmV0AAAAAwAAAAVyb3VuZAAAAAlndWVzc1R5cGUAAAAKZ3Vlc3NWYWx1ZQQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElk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wUAAAAEdGhpcwkAASwAAAACCQABLAAAAAIFAAAACmJldEtleVBhcnQCAAAAA18zXwkAAaQAAAABBQAAAAt3aW5EZXNrSGFsZgAAAAAAAAAAAgkBAAAADWNhbGNXaW5BbW91bnQAAAADBQAAAAR0aGlzCQABLAAAAAIJAAEsAAAAAgUAAAAKYmV0S2V5UGFydAIAAAADXzRfCQABpAAAAAEFAAAADHdpbkRlc2tUaGlyZAAAAAAAAAAAAwkBAAAADWNhbGNXaW5BbW91bnQAAAADBQAAAAR0aGlzCQABLAAAAAIJAAEsAAAAAgUAAAAKYmV0S2V5UGFydAIAAAADXzVfCQABpAAAAAEFAAAABndpblJvdwAAAAAAAAAAAwMJAAAAAAAAAgUAAAAJd2luQW1vdW50AAAAAAAAAAAACQAAAgAAAAECAAAAGllvdSB3b24gbm90aGluZyB0aGlzIHJvdW5kCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAALd2l0aGRyYXdLZXkFAAAACXdpbkFtb3VudAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAJd2luQW1vdW50BQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAEAAAAg2AGRxriAuyMT3c9AcH6CQ43JiN5WSLBSu4r1qoLU0WKqOYr1", "height": 2283609, "applicationStatus": "succeeded", "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 = extract(addressFromString("$ORACLE_ADDRESS"))
5+
6+let b = 50000000
7+
8+let c = 1000000000
9+
10+func d (e,f,g) = {
11+ let h = getInteger(e, f)
12+ if ($isInstanceOf(h, "Int"))
13+ then {
14+ let i = h
15+ (i * g)
16+ }
17+ else 0
18+ }
19+
20+
21+@Callable(j)
22+func bet (k,l,m) = {
23+ let n = extract(j.payment)
24+ if (isDefined(n.assetId))
25+ then throw("Bets only in Waves supported")
26+ else if ((b > n.amount))
27+ then throw(("Your Bet amount is less then minimal bet " + toString(b)))
28+ else if (if (isDefined(getBoolean(a, (k + "_stop"))))
29+ then true
30+ else isDefined(getString(a, k)))
31+ then throw("This round is already played")
32+ else {
33+ let o = (k + "_sumBets")
34+ let p = {
35+ let h = getInteger(this, o)
36+ if ($isInstanceOf(h, "Int"))
37+ then {
38+ let i = h
39+ i
40+ }
41+ else 0
42+ }
43+ let q = (p + n.amount)
44+ if ((q > c))
45+ then throw(((("Maximum amount of bets for round " + toString(c)) + ". With your bet it's ") + toString(q)))
46+ else {
47+ let r = ((((((toBase58String(j.caller.bytes) + "_") + k) + "_") + toString(l)) + "_") + toString(m))
48+ let s = {
49+ let h = getInteger(this, r)
50+ if ($isInstanceOf(h, "Int"))
51+ then {
52+ let i = h
53+ i
54+ }
55+ else 0
56+ }
57+ let t = (s + n.amount)
58+ WriteSet([DataEntry(r, t), DataEntry(o, q)])
59+ }
60+ }
61+ }
62+
63+
64+
65+@Callable(j)
66+func withdraw (k) = {
67+ let u = ((toBase58String(j.caller.bytes) + "_") + k)
68+ let v = (u + "_withdraw")
69+ if (isDefined(getInteger(this, v)))
70+ then throw("You have already got your prize")
71+ else {
72+ let w = getStringValue(a, k)
73+ let x = parseIntValue(drop(take(w, 2), 0))
74+ let y = parseIntValue(drop(take(w, 3), 2))
75+ let z = parseIntValue(drop(take(w, 4), 3))
76+ let A = parseIntValue(drop(take(w, 5), 4))
77+ let B = parseIntValue(drop(take(w, 6), 5))
78+ let C = parseIntValue(drop(take(w, 7), 6))
79+ let D = (((((d(this, ((u + "_0_") + toString(x)), 36) + d(this, ((u + "_1_") + toString(y)), 2)) + d(this, ((u + "_2_") + toString(z)), 2)) + d(this, ((u + "_3_") + toString(A)), 2)) + d(this, ((u + "_4_") + toString(B)), 3)) + d(this, ((u + "_5_") + toString(C)), 3))
80+ if ((D == 0))
81+ then throw("You won nothing this round")
82+ else ScriptResult(WriteSet([DataEntry(v, D)]), TransferSet([ScriptTransfer(j.caller, D, unit)]))
83+ }
84+ }
85+
86+
87+@Verifier(E)
88+func F () = sigVerify(E.bodyBytes, E.proofs[0], base58'FYCT9GxhR2igEeyf9SWGi85bebBVaTAf9WUihEQnnBa9')
89+

github/deemru/w8io/026f985 
19.62 ms