tx · EGyyPQkYYK8nXSMMgPKCgdiKFGroSXMUYZsRBYujyHuC 3N3UmzKXACreLX3MxuUSf1zKdxC6GjE8wHD: -0.01400000 Waves 2021.05.11 17:04 [1521110] smart account 3N3UmzKXACreLX3MxuUSf1zKdxC6GjE8wHD > SELF 0.00000000 Waves
{ "type": 13, "id": "EGyyPQkYYK8nXSMMgPKCgdiKFGroSXMUYZsRBYujyHuC", "fee": 1400000, "feeAssetId": null, "timestamp": 1620741956743, "version": 1, "sender": "3N3UmzKXACreLX3MxuUSf1zKdxC6GjE8wHD", "senderPublicKey": "Co7gTLr7ZJvVKwToLpuZJqmkVecy5uwupYH6qCkKuhc8", "proofs": [ "4byNEJYRAAG977BVt5DbQHZE9rRQg91XWFHz1w8TEegEswDeSPUZ8DmaDviuvZw8Tu4FpZ4Je4sdbEV2BhkmtGbU" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAABgAAAAALZGljZU51bWJlcnMJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAACCQAETAAAAAIAAAAAAAAAAAMJAARMAAAAAgAAAAAAAAAABAkABEwAAAACAAAAAAAAAAAFCQAETAAAAAIAAAAAAAAAAAYJAARMAAAAAgAAAAAAAAAABwkABEwAAAACAAAAAAAAAAAIBQAAAANuaWwAAAAADkdBTUVJTlBST0dSRVNTAAAAAAAAAAAAAAAAAAxHQU1FRklOSVNIRUQAAAAAAAAAAAAAAAAAE2dhbWVNYXN0ZXJQdWJsaWNLZXkBAAAAIK9A06gZuS3fBWT2Smv7IP105RjssF0Y0JssrkxWRKh1AAAAAAlnYW1lVG9rZW4BAAAAIK5gG7nVQrpvLZOnYFVOI3kG7J/W0G+EQyJ8FisXZ2EDAAAAABBsYXN0Um9sbGVkTnVtYmVyAAAAAAAAAAAAAAAAAQAAAAFpAQAAAAlzdGFydEdhbWUAAAAABAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAhY2FuIGhvZGwgd2F2ZXMgb25seSBhdCB0aGUgbW9tZW50BAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdBbW91bnQJAABkAAAAAgUAAAANY3VycmVudEFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkFAAAACW5ld0Ftb3VudAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5oc1tbA==", "chainId": 84, "height": 1521110, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8M5eZ7FSoi5Vh4CpXgNWDDJ5QAwgdjinR8jVKfKRCL5p Next: AH6b6qrXAN7GqSRv9dYkLPcRsFuWvaBcGk7RD5mvWRbH Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let diceNumbers = [1, 2, 3, 4, 5, 6, 7, 8] | |
5 | 5 | ||
6 | 6 | let GAMEINPROGRESS = 0 | |
7 | 7 | ||
8 | 8 | let GAMEFINISHED = 0 | |
9 | 9 | ||
10 | 10 | let gameMasterPublicKey = base58'Co7gTLr7ZJvVKwToLpuZJqmkVecy5uwupYH6qCkKuhc8' | |
11 | 11 | ||
12 | 12 | let gameToken = base58'CjgwQi4TUfkHaLgTigyd3xuEpT3GU1ihtHxK2uy5VG4S' | |
13 | 13 | ||
14 | 14 | let lastRolledNumber = 0 | |
15 | 15 | ||
16 | 16 | @Callable(i) | |
17 | 17 | func startGame () = { | |
18 | 18 | let pmt = extract(i.payment) | |
19 | 19 | if (isDefined(pmt.assetId)) | |
20 | 20 | then throw("can hodl waves only at the moment") | |
21 | 21 | else { | |
22 | 22 | let currentKey = toBase58String(i.caller.bytes) | |
23 | 23 | let currentAmount = match getInteger(this, currentKey) { | |
24 | 24 | case a: Int => | |
25 | 25 | a | |
26 | 26 | case _ => | |
27 | 27 | 0 | |
28 | 28 | } | |
29 | 29 | let newAmount = (currentAmount + pmt.amount) | |
30 | 30 | WriteSet([DataEntry(currentKey, newAmount)]) | |
31 | 31 | } | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | @Verifier(tx) | |
36 | 36 | func verify () = match tx { | |
37 | 37 | case _ => | |
38 | 38 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
39 | 39 | } | |
40 | 40 |
github/deemru/w8io/169f3d6 55.71 ms ◑