tx · CzSB2zL5Zo4VjYDxSZXcYqbQ349xPw2dn1LAFso3Un8P

3MpdJJV3WyZufiGHRtb7xbY2Vsc2pBFcJYZ:  -0.01400000 Waves

2021.05.12 13:54 [1522361] smart account 3MpdJJV3WyZufiGHRtb7xbY2Vsc2pBFcJYZ > SELF 0.00000000 Waves

{ "type": 13, "id": "CzSB2zL5Zo4VjYDxSZXcYqbQ349xPw2dn1LAFso3Un8P", "fee": 1400000, "feeAssetId": null, "timestamp": 1620816938553, "version": 1, "sender": "3MpdJJV3WyZufiGHRtb7xbY2Vsc2pBFcJYZ", "senderPublicKey": "ALG9JVGNn9aCL68dbg1AmW6yDQv1b8EDLq99pQS8L1k6", "proofs": [ "3TYp9uN7EEemhJaR4uucsY2Rx2rSGmMZZuxiWKZA4asa2xLnTUFJ9yZRaTtDgTjajEeS8i2K4H72UggwAi7Uhtq5" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAADQAAAAATZ2FtZU1hc3RlclB1YmxpY0tleQEAAAAgiqhXENVUjUGu2Tjc+GQ+fR+8C37qMFcHENaiP3yugAsBAAAAE2F1dGhvcml6ZVBlcm1pc3Npb24AAAABAAAAD2NhbGxlclB1YmxpY0tleQkBAAAAAiE9AAAAAgUAAAAPY2FsbGVyUHVibGljS2V5BQAAABNnYW1lTWFzdGVyUHVibGljS2V5AAAAAAtkaWNlTnVtYmVycwkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAIJAARMAAAAAgAAAAAAAAAAAwkABEwAAAACAAAAAAAAAAAECQAETAAAAAIAAAAAAAAAAAUJAARMAAAAAgAAAAAAAAAABgkABEwAAAACAAAAAAAAAAAHCQAETAAAAAIAAAAAAAAAAAgFAAAAA25pbAAAAAAOR0FNRUlOUFJPR1JFU1MAAAAAAAAAAAEAAAAADEdBTUVGSU5JU0hFRAAAAAAAAAAAAAAAAAAQZ2FtZUNvdW50ZXJMYWJlbAIAAAANR19HQU1FQ09VTlRFUgAAAAAOZ2FtZVN0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JAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRdRxro=", "chainId": 84, "height": 1522361, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 46odmspuyMJE6Km2T1FbH1YHJdTeTbFt4Y5gvk59Qt1f Next: JAmjg7YhTXVQ4fL7FByTpxCyf1ztZegu13jPLkTE9X11 Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let gameMasterPublicKey = base58'ALG9JVGNn9aCL68dbg1AmW6yDQv1b8EDLq99pQS8L1k6'
55
66 func authorizePermission (callerPublicKey) = (callerPublicKey != gameMasterPublicKey)
77
88
99 let diceNumbers = [1, 2, 3, 4, 5, 6, 7, 8]
1010
1111 let GAMEINPROGRESS = 1
1212
1313 let GAMEFINISHED = 0
1414
1515 let gameCounterLabel = "G_GAMECOUNTER"
1616
1717 let gameStateLabel = "G_STATE"
1818
1919 let gameCurrentPointLabal = "G_CurrentPoint "
2020
2121 let gameToken = base58'Co7gTLr7ZJvVKwToLpuZJqmkVecy5uwupYH6qCkKuhc8'
2222
2323 let lastRolledNumber = 0
2424
2525 func getGameStateLabel (gameCounter) = ((("G_" + toString(gameCounter)) + "_") + gameStateLabel)
2626
2727
2828 func getGameState (gameCounter) = getInteger(this, getGameStateLabel(gameCounter))
2929
3030
3131 func getCrapGameCounter () = getInteger(this, gameCounterLabel)
3232
3333
3434 @Callable(i)
3535 func initGame () = if (authorizePermission(i.callerPublicKey))
3636 then throw("initGame_FORBIDDEN")
3737 else match getCrapGameCounter() {
3838 case counter: Int =>
3939 throw("INIT_ALREADY_DONE")
4040 case _ =>
4141 [IntegerEntry(gameCounterLabel, 1)]
4242 }
4343
4444
4545 @Verifier(tx)
4646 func verify () = match tx {
4747 case _ =>
4848 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4949 }
5050

github/deemru/w8io/169f3d6 
25.78 ms