tx · 3skRifYSV37wido7xWA1oU3f8fF67gCf8JVRXzsGRLT7 3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh: -0.01000000 Waves 2021.07.22 19:45 [1625107] smart account 3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh > SELF 0.00000000 Waves
{ "type": 13, "id": "3skRifYSV37wido7xWA1oU3f8fF67gCf8JVRXzsGRLT7", "fee": 1000000, "feeAssetId": null, "timestamp": 1626972310793, "version": 2, "chainId": 84, "sender": "3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh", "senderPublicKey": "D7edN6TZzQ6PbyWHGFdGMPJkkRNjR1Y32g7MmU7AXR73", "proofs": [ "NsZ93AgAT7TpfmtgagsbVu7vYRajrLPXGQQXZbKBBu2nJU97wYiBN7tNKXaDiHqfuyrLqafHwyhN347R5o71yoc" ], "script": "base64:AAIFAAAAAAAAABAIAhIAEgMKAQESAwoBARIAAAAABQAAAAAJQkxPQ0tTVEVQAAAAAAAAAAAKAAAAAAlJTkdPVENPU1QAAAAAAAAAA+gAAAAACFBMT1RDT1NUAAAAAAAAAYagAAAAAAVnTHVtcAEAAAAg9zCOS72Q1vYXbBOZsGiYip0A3D8vW8S490kPXDWEHLMBAAAACnJhbmRvbWl6ZXIAAAABAAAAA2ludgQAAAAIbGFzdFBsYXkEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAIbGFzdE1pbmUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQBAAAADkdvbGRNaW5lcnMyMDIxCQAAAgAAAAECAAAAC01hdGNoIGVycm9yBAAAAARyYW5kCQAAywAAAAIJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAgUAAAAIbGFzdFBsYXkIBQAAAANpbnYAAAANdHJhbnNhY3Rpb25JZAgFAAAAA2ludgAAAA9jY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2FsbGVyBQAAAAduZXdXYWl0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAD6AUAAAAFZ0x1bXAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAFcGxvdF8FAAAABmNhbGxlcgUAAAALbmV3UGxvdFNpemUFAAAAA25pbAAAAACOmUBl", "height": 1625107, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GY1bnnCtSAebiySBkV5665U7BrhVqdkjXjHz1ivNfAmu Next: HyfQWhLYxAiTacCB8Ph37vSPjBpr9GjN4kr7crJ2kHAS Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 10 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 1000 | |
7 | 7 | ||
8 | 8 | let c = 100000 | |
9 | 9 | ||
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = { | |
14 | - | let h = getBinary(this, " | |
14 | + | let h = getBinary(this, "lastMine") | |
15 | 15 | if ($isInstanceOf(h, "ByteVector")) | |
16 | 16 | then { | |
17 | 17 | let i = h | |
43 | 43 | let q = (toInt(p) % 1000) | |
44 | 44 | if ((m > lastBlock.height)) | |
45 | 45 | then throw((("Wait block " + toString(m)) + " for mining again")) | |
46 | - | else [IntegerEntry(("wait_" + l), o), ScriptTransfer(k.caller, q, d)] | |
46 | + | else [IntegerEntry(("wait_" + l), o), ScriptTransfer(k.caller, q, d), BinaryEntry("lastMine", p)] | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
120 | 120 | else { | |
121 | 121 | let v = k.payments[0] | |
122 | 122 | if (isDefined(v.assetId)) | |
123 | - | then throw("Payment only in | |
123 | + | then throw("Payment only in WAVES") | |
124 | 124 | else if ((v.amount != (A * c))) | |
125 | 125 | then throw((("Payment expected " + toString((A * c))) + " WAVELET")) | |
126 | 126 | else [IntegerEntry(("plot_" + l), A)] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 10 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 1000 | |
7 | 7 | ||
8 | 8 | let c = 100000 | |
9 | 9 | ||
10 | 10 | let d = base58'HdveNhSzDRiEib9RfQ5EAxmpFVica4EqvBFd2S4pdbD4' | |
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = { | |
14 | - | let h = getBinary(this, " | |
14 | + | let h = getBinary(this, "lastMine") | |
15 | 15 | if ($isInstanceOf(h, "ByteVector")) | |
16 | 16 | then { | |
17 | 17 | let i = h | |
18 | 18 | i | |
19 | 19 | } | |
20 | 20 | else if ($isInstanceOf(h, "Unit")) | |
21 | 21 | then base58'TGCTLFoHxJ8U7rcUofN' | |
22 | 22 | else throw("Match error") | |
23 | 23 | } | |
24 | 24 | let j = (((((g + f.transactionId) + f.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
25 | 25 | sha256(j) | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | @Callable(k) | |
30 | 30 | func goToMine () = { | |
31 | 31 | let l = toBase58String(k.caller.bytes) | |
32 | 32 | let m = { | |
33 | 33 | let h = getInteger(this, ("wait_" + l)) | |
34 | 34 | if ($isInstanceOf(h, "Int")) | |
35 | 35 | then { | |
36 | 36 | let n = h | |
37 | 37 | n | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | let o = (lastBlock.height + a) | |
42 | 42 | let p = e(k) | |
43 | 43 | let q = (toInt(p) % 1000) | |
44 | 44 | if ((m > lastBlock.height)) | |
45 | 45 | then throw((("Wait block " + toString(m)) + " for mining again")) | |
46 | - | else [IntegerEntry(("wait_" + l), o), ScriptTransfer(k.caller, q, d)] | |
46 | + | else [IntegerEntry(("wait_" + l), o), ScriptTransfer(k.caller, q, d), BinaryEntry("lastMine", p)] | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | ||
51 | 51 | @Callable(k) | |
52 | 52 | func craftIngot (q) = { | |
53 | 53 | let l = toBase58String(k.caller.bytes) | |
54 | 54 | let r = { | |
55 | 55 | let h = getInteger(this, ("craft_" + l)) | |
56 | 56 | if ($isInstanceOf(h, "Int")) | |
57 | 57 | then { | |
58 | 58 | let n = h | |
59 | 59 | n | |
60 | 60 | } | |
61 | 61 | else 0 | |
62 | 62 | } | |
63 | 63 | let s = { | |
64 | 64 | let h = getInteger(this, "ingots_count") | |
65 | 65 | if ($isInstanceOf(h, "Int")) | |
66 | 66 | then { | |
67 | 67 | let n = h | |
68 | 68 | n | |
69 | 69 | } | |
70 | 70 | else 0 | |
71 | 71 | } | |
72 | 72 | let t = (s + 1) | |
73 | 73 | let u = (lastBlock.height + a) | |
74 | 74 | if ((size(k.payments) == 0)) | |
75 | 75 | then throw("Payment wasn't attached") | |
76 | 76 | else if ((r > lastBlock.height)) | |
77 | 77 | then throw((("Wait block " + toString(r)) + " for crafting again")) | |
78 | 78 | else if (if (if ((q != 1)) | |
79 | 79 | then (q != 10) | |
80 | 80 | else false) | |
81 | 81 | then (q != 50) | |
82 | 82 | else false) | |
83 | 83 | then throw("Wrong ingot's weight!") | |
84 | 84 | else { | |
85 | 85 | let v = k.payments[0] | |
86 | 86 | if ((v.assetId != d)) | |
87 | 87 | then throw("Payment only in gLump") | |
88 | 88 | else if ((v.amount != (b * q))) | |
89 | 89 | then throw((("Payment expected " + toString((b * q))) + " gLump")) | |
90 | 90 | else { | |
91 | 91 | let w = ("INGOT" + toString(t)) | |
92 | 92 | let x = (((((("{\"weight\":" + toString(q)) + ",\"uid\":") + toString(t)) + ",\"made_by\":\"") + l) + "\"}") | |
93 | 93 | let y = Issue(w, x, 1, 0, false) | |
94 | 94 | let z = calculateAssetId(y) | |
95 | 95 | [Burn(d, (b * q)), Issue(w, x, 1, 0, false), ScriptTransfer(k.caller, 1, z), IntegerEntry("ingots_count", t), StringEntry(("ingot_" + toString(t)), toBase58String(z)), IntegerEntry(("craft_" + l), u)] | |
96 | 96 | } | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | ||
102 | 102 | @Callable(k) | |
103 | 103 | func buyPlot (A) = { | |
104 | 104 | let l = toBase58String(k.caller.bytes) | |
105 | 105 | let B = { | |
106 | 106 | let h = getInteger(this, ("plot_" + l)) | |
107 | 107 | if ($isInstanceOf(h, "Int")) | |
108 | 108 | then { | |
109 | 109 | let n = h | |
110 | 110 | n | |
111 | 111 | } | |
112 | 112 | else 0 | |
113 | 113 | } | |
114 | 114 | if ((B > 0)) | |
115 | 115 | then throw("You already have a plot!") | |
116 | 116 | else if (if ((0 > B)) | |
117 | 117 | then true | |
118 | 118 | else (B > 1000)) | |
119 | 119 | then throw("Correct size value from 1 to 1000") | |
120 | 120 | else { | |
121 | 121 | let v = k.payments[0] | |
122 | 122 | if (isDefined(v.assetId)) | |
123 | - | then throw("Payment only in | |
123 | + | then throw("Payment only in WAVES") | |
124 | 124 | else if ((v.amount != (A * c))) | |
125 | 125 | then throw((("Payment expected " + toString((A * c))) + " WAVELET")) | |
126 | 126 | else [IntegerEntry(("plot_" + l), A)] | |
127 | 127 | } | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(k) | |
133 | 133 | func goToPlot () = { | |
134 | 134 | let l = toBase58String(k.caller.bytes) | |
135 | 135 | let B = { | |
136 | 136 | let h = getInteger(this, ("plot_" + l)) | |
137 | 137 | if ($isInstanceOf(h, "Int")) | |
138 | 138 | then { | |
139 | 139 | let n = h | |
140 | 140 | n | |
141 | 141 | } | |
142 | 142 | else 0 | |
143 | 143 | } | |
144 | 144 | let m = { | |
145 | 145 | let h = getInteger(this, ("wait_" + l)) | |
146 | 146 | if ($isInstanceOf(h, "Int")) | |
147 | 147 | then { | |
148 | 148 | let n = h | |
149 | 149 | n | |
150 | 150 | } | |
151 | 151 | else 0 | |
152 | 152 | } | |
153 | 153 | let o = (lastBlock.height + a) | |
154 | 154 | let C = (B - 1) | |
155 | 155 | if ((0 >= B)) | |
156 | 156 | then throw("Plot is empty, buy new!") | |
157 | 157 | else if ((m > lastBlock.height)) | |
158 | 158 | then throw((("Wait block " + toString(m)) + " for mining again")) | |
159 | 159 | else [IntegerEntry(("wait_" + l), o), ScriptTransfer(k.caller, 1000, d), IntegerEntry(("plot_" + l), C)] | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 |
github/deemru/w8io/169f3d6 34.35 ms ◑