tx · CanoEWnUqrstSE5QjCQSnGnRg7eLXxxMNN5ARRLDR26R

3NCFV4YSBFCEBXDYHwCuh6X5SqMeQXFgEaf:  -0.01500000 Waves

2021.06.04 04:29 [1554968] smart account 3NCFV4YSBFCEBXDYHwCuh6X5SqMeQXFgEaf > SELF 0.00000000 Waves

{ "type": 13, "id": "CanoEWnUqrstSE5QjCQSnGnRg7eLXxxMNN5ARRLDR26R", "fee": 1500000, "feeAssetId": null, "timestamp": 1622770242064, "version": 2, "chainId": 84, "sender": "3NCFV4YSBFCEBXDYHwCuh6X5SqMeQXFgEaf", "senderPublicKey": "6zkdpCUGZybpbh7mrJvMphWq6fUvbGoyxafdsQjtwsWA", "proofs": [ "y1CPN9A62xNrzApdPe87SL9PcBBzRouebURgU1T3tAyR9b6D3PU45FGCD71y2gNz5csqAZF65G4kFY5cNKKddPw" ], "script": "base64:AAIEAAAAAAAAABAIAhIFCgMIAQESBQoDAQEIAAAADwAAAAAJR0FNRVNUQVJUAAAAAAAAAAAAAAAAAA5HQU1FSU5QUk9HUkVTUwAAAAAAAAAAAQAAAAAMR0FNRUZJTklTSEVEAAAAAAAAAAACAAAAABZCTE9DS1RPUFJPQ0VTU0ZPUlRIUk9XAAAAAAAAAAABAAAAAAtQQVNTTElORUJFVAIAAAALUEFTU0xJTkVCRVQAAAAAD0RPTlRQQVNTTElORUJFVAIAAAAPRE9OVFBBU1NMSU5FQkVUAAAAAAdDT01FQkVUAgAAAAdDT01FQkVUAAAAAAtET05UQ09NRUJFVAIAAAALRE9OVENPTUVCRVQAAAAACEZJRUxEQkVUAgAAAAhGSUVMREJFVAAAAAAHT0REU0JFVAIAAAAHT0REU0JFVAAAAAAKQklHNk9SOEJFVAIAAAAKQklHNk9SOEJFVAAAAAALUExBQ0VCRVRCVVkCAAAAC1BMQUNFQkVUQlVZAAAAAAxQTEFDRUJFVExPU0UCAAAADFBMQUNFQkVUTE9TRQAAAAALUExBQ0VCRVRMQVkCAAAAC1BMQUNFQkVUTEFZ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QkAAGgAAAACBQAAAAZhbW91bnQAAAAAAAAAAAAFAAAAA25pbAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFcHJpY2UJAABoAAAAAgUAAAAGYW1vdW50AAAAAAAAAAAABQAAAANuaWwJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABXByaWNlCQAAaAAAAAIFAAAABmFtb3VudAAAAAAAAAAAAAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5aspdvw==", "height": 1554968, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EPUSCA6L3xNQWw3T8vax7pADhsCxAHpowuMtXTVneZkE Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let GAMESTART = 0
55
66 let GAMEINPROGRESS = 1
77
88 let GAMEFINISHED = 2
99
1010 let BLOCKTOPROCESSFORTHROW = 1
1111
1212 let PASSLINEBET = "PASSLINEBET"
1313
1414 let DONTPASSLINEBET = "DONTPASSLINEBET"
1515
1616 let COMEBET = "COMEBET"
1717
1818 let DONTCOMEBET = "DONTCOMEBET"
1919
2020 let FIELDBET = "FIELDBET"
2121
2222 let ODDSBET = "ODDSBET"
2323
2424 let BIG6OR8BET = "BIG6OR8BET"
2525
2626 let PLACEBETBUY = "PLACEBETBUY"
2727
2828 let PLACEBETLOSE = "PLACEBETLOSE"
2929
3030 let PLACEBETLAY = "PLACEBETLAY"
3131
3232 let PLACEBETWIN = "PLACEBETWIN"
3333
3434 @Callable(i)
3535 func getWinningAmount (betDetails,resultOfRound,round) = throw(betDetails)
3636
3737
3838
3939 @Callable(i)
4040 func getWinningAmountPassLineBets (firstPoint,lastPoint,betDetails) = {
4141 let betType = split(betDetails, "_")[2]
4242 let betPlacer = split(betDetails, "_")[0]
4343 let amount = value(parseInt(split(betDetails, "_")[1]))
4444 if ((betType == PASSLINEBET))
4545 then if ((lastPoint == 0))
4646 then if (if ((firstPoint == 7))
4747 then true
4848 else (firstPoint == 11))
4949 then [IntegerEntry("price", (amount * 2))]
5050 else [IntegerEntry("price", (amount * 0))]
5151 else if ((firstPoint == lastPoint))
5252 then [IntegerEntry("price", (amount * 2))]
5353 else if ((lastPoint == 7))
5454 then [IntegerEntry("price", (amount * 0))]
5555 else [IntegerEntry("price", (amount * 0))]
5656 else if ((betType == DONTPASSLINEBET))
5757 then if ((lastPoint == 0))
5858 then if (if ((firstPoint == 2))
5959 then true
6060 else (firstPoint == 3))
6161 then [IntegerEntry("price", (amount * 2))]
6262 else if (if ((lastPoint == 7))
6363 then true
6464 else (lastPoint == 11))
6565 then [IntegerEntry("price", (amount * 0))]
6666 else [IntegerEntry("price", (amount * 0))]
6767 else if (if ((lastPoint == 2))
6868 then true
6969 else (lastPoint == 3))
7070 then [IntegerEntry("price", (amount * 2))]
7171 else if ((lastPoint == 7))
7272 then [IntegerEntry("price", (amount * 0))]
7373 else [IntegerEntry("price", (amount * 0))]
7474 else [IntegerEntry("price", (amount * 0))]
7575 }
7676
7777
7878 @Verifier(tx)
7979 func verify () = match tx {
8080 case _ =>
8181 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
8282 }
8383

github/deemru/w8io/169f3d6 
52.75 ms