tx · DEntW1bhqT9N8C6iNn5ibWNcuekgoHJQxjMoqpcoJM4G 3N3mV2Baor8EY7CYQ7QgAm3tL8KruH1VpKA: -0.01000000 Waves 2021.07.24 09:57 [1627387] smart account 3N3mV2Baor8EY7CYQ7QgAm3tL8KruH1VpKA > SELF 0.00000000 Waves
{ "type": 13, "id": "DEntW1bhqT9N8C6iNn5ibWNcuekgoHJQxjMoqpcoJM4G", "fee": 1000000, "feeAssetId": null, "timestamp": 1627109912438, "version": 2, "chainId": 84, "sender": "3N3mV2Baor8EY7CYQ7QgAm3tL8KruH1VpKA", "senderPublicKey": "4P5V3b5K49wXNGa4M6SwDgHAMBa582FxTsF5qjWePQo3", "proofs": [ "3qZcQ1aZqYjXvaffA6S9zz2zueZc53qncjrEPX6nT6UKKAKnd73DtAm6qPnsHjX1HsrVCoDwmFeyMnVo4cQ2hLR4" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAA2ludgEAAAAEcGxheQAAAAIAAAAEY2FyZAAAAAVjbGFzcwQAAAAKY3VycmVudEtleQgFAAAAA2ludgAAAAZjYWxsZXIEAAAACWJ0Y0Ftb3VudAkBAAAABXZhbHVlAAAAAQgJAAGRAAAAAggFAAAAA2ludgAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQEAAAAD2N1cnJlbnRLZXlCeXRlcwkAAlgAAAABCAgFAAAAA2ludgAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAACGNhcmROYW1lCQABLAAAAAIJAAEsAAAAAgUAAAAFY2xhc3MCAAAAAV8FAAAABGNhcmQEAAAAFWNhcmROYW1lQ3VycmVudFBsYXllcgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAVjbGFzcwIAAAABXwUAAAAEY2FyZAIAAAABXwUAAAAPY3VycmVudEtleUJ5dGVzBAAAAAZ1bmRlYWQBAAAAICanmw90haz4/543ou2eFDbzWrfwLQui7etDznfYZP5DBAAAAAljYXJkc0dh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YXR1c18FAAAAFWNhcmROYW1lQ3VycmVudFBsYXllcgIAAAAEVXNlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAABZSZXN1bHRhZG8gZGEgUGFydGlkYTogCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAId2lubmVyOiAFAAAABndpbm5lcgIAAAAOLyB3aW5uaW5nQ2FyZDoFAAAAC3dpbm5pbmdDYXJkAgAAAB8vIHBvaW50c1JlbWFpbmluZ09uV2lubmluZ0NhcmQ6CQABpAAAAAEFAAAAHHBvaW50c1JlbWFpbmluZ09uV2lubmluZ0NhcmQFAAAAA25pbAAAAAA8EGri", "height": 1627387, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BrFeUuYDmTAWYfrQau485MHKcC4E1cesYNTwC2PWYejk Next: AUeDdNTZqdL75ToF4nMmz5beJxqhToBUJmUtvzMQZd9e Diff:
Old | New | Differences | |
---|---|---|---|
81 | 81 | let v = if ((p > s)) | |
82 | 82 | then (p - s) | |
83 | 83 | else (s - p) | |
84 | - | [StringEntry("playerIntTheArena", t), StringEntry("cardInTheArena", g), IntegerEntry("arenaCardScore", v), StringEntry(("status_" + h), "Used")] | |
84 | + | [StringEntry("playerIntTheArena", t), StringEntry("cardInTheArena", g), IntegerEntry("arenaCardScore", v), StringEntry(("status_" + h), "Used"), StringEntry("Resultado da Partida: ", ((((("winner: " + t) + "/ winningCard:") + u) + "/ pointsRemainingOnWinningCard:") + toString(v)))] | |
85 | 85 | } | |
86 | 86 | } | |
87 | 87 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func play (b,c) = { | |
8 | 8 | let d = a.caller | |
9 | 9 | let e = value(a.payments[0].amount) | |
10 | 10 | let f = toBase58String(a.caller.bytes) | |
11 | 11 | let g = ((c + "_") + b) | |
12 | 12 | let h = ((((c + "_") + b) + "_") + f) | |
13 | 13 | let i = base58'3btiz2mNkbcFhcAww6Zn6WaRtDY3mLHf2dbJHNNbdUFk' | |
14 | 14 | let j = ["Undead_01", "Undead_02", "Undead_03", "Undead_04", "Undead_05", "Undead_07", "Undead_08", "Undead_09", "Undead_10"] | |
15 | 15 | let k = ["Undead"] | |
16 | 16 | let l = ["3btiz2mNkbcFhcAww6Zn6WaRtDY3mLHf2dbJHNNbdUFk"] | |
17 | 17 | let m = { | |
18 | 18 | let n = getString(this, ("status_" + h)) | |
19 | 19 | if ($isInstanceOf(n, "String")) | |
20 | 20 | then { | |
21 | 21 | let o = n | |
22 | 22 | o | |
23 | 23 | } | |
24 | 24 | else "" | |
25 | 25 | } | |
26 | 26 | let p = { | |
27 | 27 | let n = getInteger(this, g) | |
28 | 28 | if ($isInstanceOf(n, "Int")) | |
29 | 29 | then { | |
30 | 30 | let o = n | |
31 | 31 | o | |
32 | 32 | } | |
33 | 33 | else 0 | |
34 | 34 | } | |
35 | 35 | let q = { | |
36 | 36 | let n = getString(this, "playerInTheArena") | |
37 | 37 | if ($isInstanceOf(n, "String")) | |
38 | 38 | then { | |
39 | 39 | let o = n | |
40 | 40 | o | |
41 | 41 | } | |
42 | 42 | else "" | |
43 | 43 | } | |
44 | 44 | let r = { | |
45 | 45 | let n = getString(this, "cardInTheArena") | |
46 | 46 | if ($isInstanceOf(n, "String")) | |
47 | 47 | then { | |
48 | 48 | let o = n | |
49 | 49 | o | |
50 | 50 | } | |
51 | 51 | else "" | |
52 | 52 | } | |
53 | 53 | let s = { | |
54 | 54 | let n = getInteger(this, "arenaCardScore") | |
55 | 55 | if ($isInstanceOf(n, "Int")) | |
56 | 56 | then { | |
57 | 57 | let o = n | |
58 | 58 | o | |
59 | 59 | } | |
60 | 60 | else 0 | |
61 | 61 | } | |
62 | 62 | if (if (!(containsElement(k, c))) | |
63 | 63 | then !(containsElement(j, b)) | |
64 | 64 | else false) | |
65 | 65 | then throw("A classe enviada não existe no game! Por favor contate o suporte!") | |
66 | 66 | else if ((0 > assetBalance(d, i))) | |
67 | 67 | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.") | |
68 | 68 | else if (if ((r == "")) | |
69 | 69 | then true | |
70 | 70 | else (q == "")) | |
71 | 71 | then [StringEntry("playerInTheArena", f), StringEntry("cardInTheArena", g), IntegerEntry("arenaCardScore", p)] | |
72 | 72 | else if ((m == "Used")) | |
73 | 73 | then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!") | |
74 | 74 | else { | |
75 | 75 | let t = if ((p > s)) | |
76 | 76 | then f | |
77 | 77 | else q | |
78 | 78 | let u = if ((p > s)) | |
79 | 79 | then g | |
80 | 80 | else r | |
81 | 81 | let v = if ((p > s)) | |
82 | 82 | then (p - s) | |
83 | 83 | else (s - p) | |
84 | - | [StringEntry("playerIntTheArena", t), StringEntry("cardInTheArena", g), IntegerEntry("arenaCardScore", v), StringEntry(("status_" + h), "Used")] | |
84 | + | [StringEntry("playerIntTheArena", t), StringEntry("cardInTheArena", g), IntegerEntry("arenaCardScore", v), StringEntry(("status_" + h), "Used"), StringEntry("Resultado da Partida: ", ((((("winner: " + t) + "/ winningCard:") + u) + "/ pointsRemainingOnWinningCard:") + toString(v)))] | |
85 | 85 | } | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 |
github/deemru/w8io/03bedc9 43.04 ms ◑![]()