tx · BaLifCGSBEWHWWZXwMXstrAascqfzapLP7F3cdKAU97R 3N3mV2Baor8EY7CYQ7QgAm3tL8KruH1VpKA: -0.01000000 Waves 2021.07.24 09:01 [1627328] smart account 3N3mV2Baor8EY7CYQ7QgAm3tL8KruH1VpKA > SELF 0.00000000 Waves
{ "type": 13, "id": "BaLifCGSBEWHWWZXwMXstrAascqfzapLP7F3cdKAU97R", "fee": 1000000, "feeAssetId": null, "timestamp": 1627106505701, "version": 2, "chainId": 84, "sender": "3N3mV2Baor8EY7CYQ7QgAm3tL8KruH1VpKA", "senderPublicKey": "4P5V3b5K49wXNGa4M6SwDgHAMBa582FxTsF5qjWePQo3", "proofs": [ "ihJAGy6cVYeNjZ8i88f4gPepymDCR7j5q4UJ4Uo3U4PMTidLTy4qtixVGn2P4qX1eddV5hTEt4DYJMxyqhym6Du" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAA2ludgEAAAAEcGxheQAAAAIAAAAEY2FyZAAAAAVjbGFzcwQAAAAKY3VycmVudEtleQgFAAAAA2ludgAAAAZjYWxsZXIEAAAACWJ0Y0Ftb3VudAkBAAAABXZhbHVlAAAAAQgJAAGRAAAAAggFAAAAA2ludgAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQEAAAAD2N1cnJlbnRLZXlCeXRlcwkAAlgAAAABCAgFAAAAA2ludgAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAACGNhcmROYW1lCQABLAAAAAIJAAEsAAAAAgUAAAAFY2xhc3MCAAAAAV8FAAAABGNhcmQEAAAAFWNhcmROYW1lQ3VycmVudFBsYXllcgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAVjbGFzcwIAAAABXwUAAAAEY2FyZAIAAAABXwUAAAAPY3VycmVudEtleUJ5dGVzBAAAAAZ1bmRlYWQBAAAAICanmw90haz4/543ou2eFDbzWrfwLQui7etDznfYZP5DBAAAAAljYXJkc0dhbWUJAARMAAA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ACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5jYXJkSW5UaGVBcmVuYQUAAAAIY2FyZE5hbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADmFyZW5hQ2FyZFNjb3JlBQAAABxwb2ludHNSZW1haW5pbmdPbldpbm5pbmdDYXJkBQAAAANuaWwAAAAAHlsz8w==", "height": 1627328, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9rs74Nh8Hivd1TitQAUGMggTbykrBNxJCfExpMUqUY4S Next: FmYuJTKASXeq54swy8UYfMEnKZTC16KTLLcBNzTudX4E Diff:
Old | New | Differences | |
---|---|---|---|
79 | 79 | else if (if ((t == "")) | |
80 | 80 | then true | |
81 | 81 | else (s == "")) | |
82 | - | then [StringEntry(" | |
82 | + | then [StringEntry("playerInTheArena", s), StringEntry("cardInTheArena", g), IntegerEntry("arenaCardScore", r)] | |
83 | 83 | else if ((p == "Used")) | |
84 | 84 | then throw("Esta carta já foi utilizada!") | |
85 | 85 | else { |
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, "kingOftheArena") | |
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 = getString(this, ("status_" + h)) | |
28 | 28 | if ($isInstanceOf(n, "String")) | |
29 | 29 | then { | |
30 | 30 | let q = n | |
31 | 31 | q | |
32 | 32 | } | |
33 | 33 | else "" | |
34 | 34 | } | |
35 | 35 | let r = { | |
36 | 36 | let n = getInteger(this, ("score_" + g)) | |
37 | 37 | if ($isInstanceOf(n, "Int")) | |
38 | 38 | then { | |
39 | 39 | let q = n | |
40 | 40 | q | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | let s = { | |
45 | 45 | let n = getString(this, "playerInTheArena") | |
46 | 46 | if ($isInstanceOf(n, "String")) | |
47 | 47 | then { | |
48 | 48 | let q = n | |
49 | 49 | q | |
50 | 50 | } | |
51 | 51 | else "" | |
52 | 52 | } | |
53 | 53 | let t = { | |
54 | 54 | let n = getString(this, "cardInTheArena") | |
55 | 55 | if ($isInstanceOf(n, "String")) | |
56 | 56 | then { | |
57 | 57 | let q = n | |
58 | 58 | q | |
59 | 59 | } | |
60 | 60 | else "" | |
61 | 61 | } | |
62 | 62 | let u = { | |
63 | 63 | let n = getInteger(this, "arenaCardScore") | |
64 | 64 | if ($isInstanceOf(n, "Int")) | |
65 | 65 | then { | |
66 | 66 | let q = n | |
67 | 67 | q | |
68 | 68 | } | |
69 | 69 | else 0 | |
70 | 70 | } | |
71 | 71 | if (if (!(containsElement(k, c))) | |
72 | 72 | then !(containsElement(j, b)) | |
73 | 73 | else false) | |
74 | 74 | then throw("A classe enviada não existe no game! Por favor contate o suporte!") | |
75 | 75 | else if ((0 > assetBalance(d, i))) | |
76 | 76 | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.") | |
77 | 77 | else if ((m == "")) | |
78 | 78 | then [StringEntry("kingOftheArena", f)] | |
79 | 79 | else if (if ((t == "")) | |
80 | 80 | then true | |
81 | 81 | else (s == "")) | |
82 | - | then [StringEntry(" | |
82 | + | then [StringEntry("playerInTheArena", s), StringEntry("cardInTheArena", g), IntegerEntry("arenaCardScore", r)] | |
83 | 83 | else if ((p == "Used")) | |
84 | 84 | then throw("Esta carta já foi utilizada!") | |
85 | 85 | else { | |
86 | 86 | let v = if ((r > u)) | |
87 | 87 | then f | |
88 | 88 | else s | |
89 | 89 | let w = if ((r > u)) | |
90 | 90 | then f | |
91 | 91 | else s | |
92 | 92 | let x = if ((r > u)) | |
93 | 93 | then (r - u) | |
94 | 94 | else (u - r) | |
95 | 95 | [StringEntry("playerIntTheArena", v), StringEntry("cardInTheArena", g), IntegerEntry("arenaCardScore", x)] | |
96 | 96 | } | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 |
github/deemru/w8io/03bedc9 26.88 ms ◑![]()