tx · 9o7L7r7NrfZjPb4KyAXiJzGdBMwZK6BBbSvNLCPJnUsx 3N5817sxSDYjf2ZLXWeg7CeTTL5eb5RUGfZ: -0.01000000 Waves 2021.07.24 03:45 [1627024] smart account 3N5817sxSDYjf2ZLXWeg7CeTTL5eb5RUGfZ > SELF 0.00000000 Waves
{ "type": 13, "id": "9o7L7r7NrfZjPb4KyAXiJzGdBMwZK6BBbSvNLCPJnUsx", "fee": 1000000, "feeAssetId": null, "timestamp": 1627087704054, "version": 2, "chainId": 84, "sender": "3N5817sxSDYjf2ZLXWeg7CeTTL5eb5RUGfZ", "senderPublicKey": "J7rxZzeYSPADJy4erG5pvXRfkEStFn2ytek6F4Xx2VPY", "proofs": [ "4T1pJZoa83nL6oHE47mcRYi9uRyxDCbAdATs5LbtNaqnshWUr79rqu9i21gAHMR9FqEi3fYRT9GmkKSx5HBT2WG2" ], "script": "base64:AAIDAAAAAAAABIQIARIFCgMBAQEaCgoCYTESBGdhbWUaDQoCYTISByRtYXRjaDAaBwoCYTMSAXMaHwoCYTQSGXJhbmRvbWl6ZXJTb2xkaWVyUGxheWVyMDEaCQoCYTUSA2ludhoZCgJhNhITcmFuZFNvbGRpZXJQbGF5ZXIwMRoeCgJhNxIYcmFuZG9taXplckh1bnRlclBsYXllcjAxGhgKAmE4EhJyYW5kSHVudGVyUGxheWVyMDEaHAoCYTkSFnJhbmRvbWl6ZXJCb3NzUGxheWVyMDEaFgoCYjESEHJhbmRCb3NzUGxheWVyMDEaHwoCYjISGXJhbmRvbWl6ZXJTb2xkaWVyUGxheWVyMDIaGQoCYjMSE3JhbmRTb2xkaWVyUGxheWVyMDIaHgoCYjQSGHJhbmRvbWl6ZXJIdW50ZXJQbGF5ZXIwMhoYCgJiNRIScmFuZEh1bnRlclBsYXllcjAyGhwKAmI2EhZyYW5kb21pemVyQm9zc1BsYXllcjAyGgoKAmI3EgRyYW5kGhgKAmI4EhJpbmRleFNvbGRpZXJCdWZmZXIaFwoCYjkSEWluZGV4S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AAAAAAATiAAAAAAAAAAAAAQAAAACZTUJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACBQAAAAJkNQUAAAACZDYFAAAAAmQ3BQAAAAJlMgUAAAACZTMFAAAAAmU0BAAAAAJlNgMJAAAAAAAAAgUAAAACYjgFAAAAAmQyAAAAAAAAAAAyAAAAAAAAAAAABAAAAAJlNwMJAAAAAAAAAgUAAAACYjkFAAAAAmQzAAAAAAAAAAH0AAAAAAAAAAAABAAAAAJlOAMJAAAAAAAAAgUAAAACYzEFAAAAAmQ0AAAAAAAAABOIAAAAAAAAAAAABAAAAAJlOQkAAGQAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAAAmQ1BQAAAAJkNgUAAAACZDcFAAAAAmU2BQAAAAJlNwUAAAACZTgEAAAAAmYxAwkAAGYAAAACBQAAAAJlNQUAAAACZTkCAAAAEVBsYXllciAwMSBHYW5ob3UhAgAAABFQbGF5ZXIgMDIgR2FuaG91IQkAAAIAAAABCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAObg2wY=", "height": 1627024, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6ADEvnmt4tLqb7sAE2o55PGcSatqj1bioiyTFkgsGcng Next: H8bY78AyRNnz5GmdMT9HU2kmRYrodANELTwLTyQNrLd9 Diff:
Old | New | Differences | |
---|---|---|---|
128 | 128 | let battle = if ((totalSoldierHunterBossPlayer01 > totalSoldierHunterBossPlayer02)) | |
129 | 129 | then "Player 01 Ganhou!" | |
130 | 130 | else "Player 02 Ganhou!" | |
131 | - | | |
131 | + | throw(toString(lastBlock.timestamp)) | |
132 | 132 | } | |
133 | 133 | } | |
134 | 134 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let game = match getBinary(this, "game") { | |
5 | 5 | case s: ByteVector => | |
6 | 6 | s | |
7 | 7 | case _: Unit => | |
8 | 8 | base58'GGvfcHWwd2azCVLaeeQzr6Ccyn' | |
9 | 9 | case _ => | |
10 | 10 | throw("Match error") | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | func randomizerSoldierPlayer01 (inv) = { | |
14 | 14 | let randSoldierPlayer01 = ((((game + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
15 | 15 | sha256(randSoldierPlayer01) | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func randomizerHunterPlayer01 (inv) = { | |
20 | 20 | let randHunterPlayer01 = ((((game + inv.transactionId) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
21 | 21 | sha256(randHunterPlayer01) | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func randomizerBossPlayer01 (inv) = { | |
26 | 26 | let randBossPlayer01 = ((((game + inv.transactionId) + inv.callerPublicKey) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
27 | 27 | sha256(randBossPlayer01) | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func randomizerSoldierPlayer02 (inv) = { | |
32 | 32 | let randSoldierPlayer02 = ((((game + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.height)) | |
33 | 33 | sha256(randSoldierPlayer02) | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func randomizerHunterPlayer02 (inv) = { | |
38 | 38 | let randHunterPlayer02 = ((((game + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) | |
39 | 39 | sha256(randHunterPlayer02) | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func randomizerBossPlayer02 (inv) = { | |
44 | 44 | let rand = (((inv.callerPublicKey + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
45 | 45 | sha256(rand) | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(inv) | |
50 | 50 | func play (indexSoldierBuffer,indexHunterBuffer,indexBossBuffer) = { | |
51 | 51 | let currentKey = inv.caller | |
52 | 52 | let btcAmount = extract(inv.payment) | |
53 | 53 | let currentKeyBytes = toBase58String(inv.caller.bytes) | |
54 | 54 | let undead = base58'DdM4S3gFdTGCTPeNH1xRE3KjaUNDosoXCKvEY76VfP4o' | |
55 | 55 | let kingOftheArena = match getString(this, "kingOftheArena") { | |
56 | 56 | case a: String => | |
57 | 57 | a | |
58 | 58 | case _ => | |
59 | 59 | "" | |
60 | 60 | } | |
61 | 61 | if ((0 > assetBalance(currentKey, undead))) | |
62 | 62 | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a troca em Swap Decks.") | |
63 | 63 | else if ((kingOftheArena == "")) | |
64 | 64 | then WriteSet([DataEntry("kingOftheArena", currentKeyBytes), DataEntry("btcAmount", btcAmount.amount), DataEntry("indexSoldierBuffer", indexSoldierBuffer), DataEntry("indexHunterBuffer", indexHunterBuffer), DataEntry("indexBossBuffer", indexBossBuffer)]) | |
65 | 65 | else { | |
66 | 66 | let soldierRandomPlayer01 = (toInt(randomizerSoldierPlayer01(inv)) % 4) | |
67 | 67 | let hunterRandomPlayer01 = (toInt(randomizerHunterPlayer01(inv)) % 4) | |
68 | 68 | let bossRandomPlayer01 = (toInt(randomizerBossPlayer01(inv)) % 2) | |
69 | 69 | let soldierRandomPlayer02 = (toInt(randomizerSoldierPlayer02(inv)) % 4) | |
70 | 70 | let hunterRandomPlayer02 = (toInt(randomizerHunterPlayer02(inv)) % 4) | |
71 | 71 | let bossRandomPlayer02 = (toInt(randomizerBossPlayer02(inv)) % 2) | |
72 | 72 | let soldier = match getInteger(this, ("soldier0" + toString(soldierRandomPlayer01))) { | |
73 | 73 | case a: Int => | |
74 | 74 | a | |
75 | 75 | case _ => | |
76 | 76 | 0 | |
77 | 77 | } | |
78 | 78 | let hunter = match getInteger(this, ("hunter0" + toString(hunterRandomPlayer01))) { | |
79 | 79 | case a: Int => | |
80 | 80 | a | |
81 | 81 | case _ => | |
82 | 82 | 0 | |
83 | 83 | } | |
84 | 84 | let boss = match getInteger(this, ("boss0" + toString(bossRandomPlayer01))) { | |
85 | 85 | case a: Int => | |
86 | 86 | a | |
87 | 87 | case _ => | |
88 | 88 | 0 | |
89 | 89 | } | |
90 | 90 | let indexSoldierBufferPlayer01 = match getInteger(this, "indexSoldierBuffer") { | |
91 | 91 | case a: Int => | |
92 | 92 | a | |
93 | 93 | case _ => | |
94 | 94 | 0 | |
95 | 95 | } | |
96 | 96 | let indexHunterBufferPlayer01 = match getInteger(this, "indexHunterBuffer") { | |
97 | 97 | case a: Int => | |
98 | 98 | a | |
99 | 99 | case _ => | |
100 | 100 | 0 | |
101 | 101 | } | |
102 | 102 | let indexBossBufferPlayer01 = match getInteger(this, "indexBossBuffer") { | |
103 | 103 | case a: Int => | |
104 | 104 | a | |
105 | 105 | case _ => | |
106 | 106 | 0 | |
107 | 107 | } | |
108 | 108 | let powerSoldierBufferPlayer01 = if ((indexSoldierBufferPlayer01 == soldierRandomPlayer01)) | |
109 | 109 | then 50 | |
110 | 110 | else 0 | |
111 | 111 | let powerHunterBufferPlayer01 = if ((indexHunterBufferPlayer01 == hunterRandomPlayer01)) | |
112 | 112 | then 500 | |
113 | 113 | else 0 | |
114 | 114 | let powerBossBufferPlayer01 = if ((indexBossBufferPlayer01 == bossRandomPlayer01)) | |
115 | 115 | then 5000 | |
116 | 116 | else 0 | |
117 | 117 | let totalSoldierHunterBossPlayer01 = (((((soldier + hunter) + boss) + powerSoldierBufferPlayer01) + powerHunterBufferPlayer01) + powerBossBufferPlayer01) | |
118 | 118 | let powerSoldierBufferPlayer02 = if ((indexSoldierBuffer == soldierRandomPlayer02)) | |
119 | 119 | then 50 | |
120 | 120 | else 0 | |
121 | 121 | let powerHunterBufferPlayer02 = if ((indexHunterBuffer == hunterRandomPlayer02)) | |
122 | 122 | then 500 | |
123 | 123 | else 0 | |
124 | 124 | let powerBossBufferPlayer02 = if ((indexBossBuffer == bossRandomPlayer02)) | |
125 | 125 | then 5000 | |
126 | 126 | else 0 | |
127 | 127 | let totalSoldierHunterBossPlayer02 = (((((soldier + hunter) + boss) + powerSoldierBufferPlayer02) + powerHunterBufferPlayer02) + powerBossBufferPlayer02) | |
128 | 128 | let battle = if ((totalSoldierHunterBossPlayer01 > totalSoldierHunterBossPlayer02)) | |
129 | 129 | then "Player 01 Ganhou!" | |
130 | 130 | else "Player 02 Ganhou!" | |
131 | - | | |
131 | + | throw(toString(lastBlock.timestamp)) | |
132 | 132 | } | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 |
github/deemru/w8io/026f985 44.08 ms ◑