tx · 4TFnEEEZGNH6qxfgtBZdDpPoVyLn97ExuhC6vKkCskJT

3Mz7zzdQoHabgytXU3UuTAzADXPBBLgFqu8:  -0.01400000 Waves

2019.12.11 01:50 [803315] smart account 3Mz7zzdQoHabgytXU3UuTAzADXPBBLgFqu8 > SELF 0.00000000 Waves

{ "type": 13, "id": "4TFnEEEZGNH6qxfgtBZdDpPoVyLn97ExuhC6vKkCskJT", "fee": 1400000, "feeAssetId": null, "timestamp": 1576018189636, "version": 1, "sender": "3Mz7zzdQoHabgytXU3UuTAzADXPBBLgFqu8", "senderPublicKey": "6uncmj7GmSzxFAGGX8NcToqPxTxWUHW7Aj1WSbMH2qXw", "proofs": [ "5WZoGHAb7F6XDjNYLferozUMQ8cNU4LqxP5NKfpw6WoczEDuuaanZ2Ym8hu9CxFSqAns6ibunHAo6PsKmfRwkKFz" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAADwAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQWc0ZEFSNlhiQkRBUzloci9FajNkSnY2RmZjNDY2eC9tT0dNV1UzbHJBQnMzcWE4QkhtdUpHbmtmYnBFZjJ2QXdZVE9XUHZ2emZNMTBPQmJmbG9TeXEzYzlNS3Z5VGUxbHVCTEdxVzR2WlVYSXl2U2d6MWxpeVVWZWZJUXkzZHlGOWpiZVRaYkMwYmJjVC83TzNERUwrMDF6NkErckRDYWNTWjBsR29sU1E2QW5oTHh6SWtWcE9RSmJyQm1DK3grWnVaUENNV3pKeW5kNWFlT243amFqL21rUlZ5eGU2Zy8wT2hXejROaWlaWGV1TVJCKzhtS3kwZldEL1VsSWxaV0hzQVMyWm1ya1hLcWpMcTAvMHdyOElMSmt6bmpTcWRuSTVJYmpnM3VRcmovNEFOK2k5cjI4YVE3My9aa1B0WTVTYncwQU9pQUJCdTdnSG1xOWF5VnhaUUlEQVFB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AA9jYWxsZXJQdWJsaWNLZXkEAAAAC2dhbWVEYXRhU3RyCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADlNUQVRFU1VCTUlUVEVEAgAAAAFfBQAAAA5wbGF5ZXJQdWJLZXk1OAIAAAABXwUAAAAEYmV0cwkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAD0dBTUVTQ09VTlRFUktFWQUAAAAKbmV3R2FtZU51bQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAAtnYW1lRGF0YVN0cgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAAA2x1kTA==", "chainId": 84, "height": 803315, "spentComplexity": 0 } View: original | compacted Prev: BkeAYrsim4zz7fwZHGJwqC5ED9nwaNkMjSeum7bKY8E8 Next: 6JkRa4ErCMiCbFSgakUMvXJRJLUCJ6wmnU1kTCD5AfL4 Diff:
OldNewDifferences
7373 else if (F)
7474 then throw("Passed gameId had been used before. Game aborted.")
7575 else if ((J != G.amount))
76- then throw("Payment value is different from bet value.")
76+ then throw(("Payment value is different from bet value. " + toString(J)))
7777 else {
7878 let K = z()
7979 let L = toBase58String(D.callerPublicKey)
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'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
99
1010 let d = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1111
1212 let e = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1313
1414 let f = 100000000
1515
1616 let g = 4
1717
1818 let h = 2
1919
2020 let i = "SUBMITTED"
2121
2222 let j = "WON"
2323
2424 let k = "LOST"
2525
2626 let l = (1 * f)
2727
2828 let m = (20000000 * f)
2929
3030 func n (o) = {
3131 let p = take(drop(o, 4), 10)
3232 let q = take(drop(o, 19), 10)
3333 let r = take(drop(o, 34), 10)
3434 let s = take(drop(o, 49), 10)
3535 let t = take(drop(o, 64), 10)
3636 let u = take(drop(o, 79), 10)
3737 let v = take(drop(o, 94), 10)
3838 let w = take(drop(o, 109), 10)
3939 let x = take(drop(o, 124), 10)
4040 let y = take(drop(o, 139), 10)
4141 (((((((((parseIntValue(p) + parseIntValue(q)) + parseIntValue(r)) + parseIntValue(s)) + parseIntValue(t)) + parseIntValue(u)) + parseIntValue(v)) + parseIntValue(w)) + parseIntValue(x)) + parseIntValue(y))
4242 }
4343
4444
4545 func z () = {
4646 let A = {
4747 let B = getInteger(this, b)
4848 if ($isInstanceOf(B, "Int"))
4949 then {
5050 let C = B
5151 C
5252 }
5353 else 0
5454 }
5555 (A + 1)
5656 }
5757
5858
5959 @Callable(D)
6060 func playRoulette (o) = {
6161 let E = toBase58String(D.transactionId)
6262 let F = isDefined(getString(this, E))
6363 let G = extract(D.payment)
6464 let H = isDefined(D.feeAssetId)
6565 let I = wavesBalance(D.caller)
6666 let J = n(o)
6767 if ((G.assetId != c))
6868 then throw("Payment should be in Wavesbet")
6969 else if ((1000000 > I))
7070 then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.")
7171 else if (H)
7272 then throw("Transaction's fee must be in Waves. Game aborted.")
7373 else if (F)
7474 then throw("Passed gameId had been used before. Game aborted.")
7575 else if ((J != G.amount))
76- then throw("Payment value is different from bet value.")
76+ then throw(("Payment value is different from bet value. " + toString(J)))
7777 else {
7878 let K = z()
7979 let L = toBase58String(D.callerPublicKey)
8080 let M = ((((i + "_") + L) + "_") + o)
8181 ScriptResult(WriteSet([DataEntry(b, K), DataEntry(E, M)]), TransferSet(nil))
8282 }
8383 }
8484
8585

github/deemru/w8io/169f3d6 
42.88 ms