tx · Bc3NeHf2UbmGWm2piEERq94ZSWDRr4qQs4TZed4QJmKP 3N3FtJGWEXex57HajuvYKKHU33PS4fwmQH6: -0.01000000 Waves 2021.06.30 05:53 [1592528] smart account 3N3FtJGWEXex57HajuvYKKHU33PS4fwmQH6 > SELF 0.00000000 Waves
{ "type": 13, "id": "Bc3NeHf2UbmGWm2piEERq94ZSWDRr4qQs4TZed4QJmKP", "fee": 1000000, "feeAssetId": null, "timestamp": 1625021628809, "version": 2, "chainId": 84, "sender": "3N3FtJGWEXex57HajuvYKKHU33PS4fwmQH6", "senderPublicKey": "4f5Wt4MDH3Qt6DMuZQid3zoj463xCUkNdUWjUcChuedh", "proofs": [ "37b3T88e2fDsXn32CXtPUPz97X8sAiCodDkPeNmUnCPGteSXNoT1EExUgoYx8kk1Mma6RRUyD3queiCSNabBnkSh" ], "script": "base64:AAIFAAAAAAAAABEIAhIDCgEIEgMKAQgSAwoBCAAAAAIAAAAAA0pQTgEAAAAgRaixr43MFIJOvFHmv8KDH8qDJ3GoY5FnIsYNmRfojMUAAAAABEdPTEQBAAAAIC0eOAmkGWVMqSbVdH5jMxv+07wXTJsDIu8ke5NyDNC8AAAAAwAAAAFpAQAAAAdidXlVbml0AAAAAQAAAAdhc3NldElEBAAAAARjb3N0BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAFY29zdF8FAAAAB2Fzc2V0SUQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAABV3b3JrcyB3aXRoIHdhdmVzIG9ubHkDCQEAAAACIT0AAAACCAUAAAADcG10AAAABmFtb3VudAUAAAAEY29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AIAAAASIGZvciBuZXcgYWR2ZW50dXJlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAehIAUAAAADSlBOCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAABXdhaXRfBQAAAAdhc3NldElEBQAAAAduZXdXYWl0BQAAAANuaWwAAAAAPBT1VA==", "height": 1592528, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 386oAaA4T3FBz85VR2qYeynsemNDHBPGBZVUbNnwsNSC Next: BmBn2N8FN3kBp5iCMvYuidkkwNoqVVAA1WywhH57VCL2 Diff:
Old | New | Differences | |
---|---|---|---|
53 | 53 | then throw("You are not owner!") | |
54 | 54 | else if ((j > lastBlock.height)) | |
55 | 55 | then throw((("Still wait block " + toString(lastBlock.height)) + " for forest-walking")) | |
56 | - | else [ScriptTransfer(c.caller, m, | |
56 | + | else [ScriptTransfer(c.caller, m, b), IntegerEntry(("wait_" + d), l)] | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'5gvKrU3yetdPyMisTo8JiE737U9ZXLp4XkCy2aeE7BbA' | |
5 | 5 | ||
6 | 6 | let b = base58'4385BhNBpLMpBM2Gdt8Z6edjdxYgV4Eb2eE5VvUmxrLK' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func buyUnit (d) = { | |
10 | 10 | let e = { | |
11 | 11 | let f = getInteger(this, ("cost_" + d)) | |
12 | 12 | if ($isInstanceOf(f, "Int")) | |
13 | 13 | then { | |
14 | 14 | let g = f | |
15 | 15 | g | |
16 | 16 | } | |
17 | 17 | else 0 | |
18 | 18 | } | |
19 | 19 | let h = value(c.payments[0]) | |
20 | 20 | if (isDefined(h.assetId)) | |
21 | 21 | then throw("works with waves only") | |
22 | 22 | else if ((h.amount != e)) | |
23 | 23 | then throw("Wrong cost") | |
24 | 24 | else [ScriptTransfer(c.caller, 1, fromBase58String(d)), StringEntry(("owner_" + d), toBase58String(c.caller.bytes))] | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | ||
29 | 29 | @Callable(c) | |
30 | 30 | func goToForest (d) = { | |
31 | 31 | let i = { | |
32 | 32 | let f = getString(this, ("owner_" + d)) | |
33 | 33 | if ($isInstanceOf(f, "String")) | |
34 | 34 | then { | |
35 | 35 | let g = f | |
36 | 36 | g | |
37 | 37 | } | |
38 | 38 | else "" | |
39 | 39 | } | |
40 | 40 | let j = { | |
41 | 41 | let f = getInteger(this, ("wait_" + d)) | |
42 | 42 | if ($isInstanceOf(f, "Int")) | |
43 | 43 | then { | |
44 | 44 | let g = f | |
45 | 45 | g | |
46 | 46 | } | |
47 | 47 | else 0 | |
48 | 48 | } | |
49 | 49 | let k = toBase58String(c.caller.bytes) | |
50 | 50 | let l = (lastBlock.height + 100) | |
51 | 51 | let m = ((lastBlock.height % 100) + 1) | |
52 | 52 | if ((k != i)) | |
53 | 53 | then throw("You are not owner!") | |
54 | 54 | else if ((j > lastBlock.height)) | |
55 | 55 | then throw((("Still wait block " + toString(lastBlock.height)) + " for forest-walking")) | |
56 | - | else [ScriptTransfer(c.caller, m, | |
56 | + | else [ScriptTransfer(c.caller, m, b), IntegerEntry(("wait_" + d), l)] | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | ||
61 | 61 | @Callable(c) | |
62 | 62 | func goToAdventure (d) = { | |
63 | 63 | let i = { | |
64 | 64 | let f = getString(this, ("owner_" + d)) | |
65 | 65 | if ($isInstanceOf(f, "String")) | |
66 | 66 | then { | |
67 | 67 | let g = f | |
68 | 68 | g | |
69 | 69 | } | |
70 | 70 | else "" | |
71 | 71 | } | |
72 | 72 | let j = { | |
73 | 73 | let f = getInteger(this, ("wait_" + d)) | |
74 | 74 | if ($isInstanceOf(f, "Int")) | |
75 | 75 | then { | |
76 | 76 | let g = f | |
77 | 77 | g | |
78 | 78 | } | |
79 | 79 | else 0 | |
80 | 80 | } | |
81 | 81 | let k = toBase58String(c.caller.bytes) | |
82 | 82 | let l = (lastBlock.height + 100) | |
83 | 83 | if ((k != i)) | |
84 | 84 | then throw("You are not owner!") | |
85 | 85 | else if ((j > lastBlock.height)) | |
86 | 86 | then throw((("Still wait block " + toString(lastBlock.height)) + " for new adventure")) | |
87 | 87 | else [ScriptTransfer(c.caller, 500000, a), IntegerEntry(("wait_" + d), l)] | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 |
github/deemru/w8io/169f3d6 28.03 ms ◑