tx · 7EezXEwrguMX7smz621b1f1gXYL82fipufc8FsfLMqyL 3N1AaAit2R9AD7jZKjMwDnbWqxLot78KiwT: -0.01400000 Waves 2019.07.13 10:24 [583646] smart account 3N1AaAit2R9AD7jZKjMwDnbWqxLot78KiwT > SELF 0.00000000 Waves
{ "type": 13, "id": "7EezXEwrguMX7smz621b1f1gXYL82fipufc8FsfLMqyL", "fee": 1400000, "feeAssetId": null, "timestamp": 1563002729733, "version": 1, "sender": "3N1AaAit2R9AD7jZKjMwDnbWqxLot78KiwT", "senderPublicKey": "7ndb4crdkXEew9f8X3KQAyFUrKJVR8wJY3uoekqEszha", "proofs": [ "2gfAjbqbDiCjQbKxk1CSyexS3cRB4BzC1U6sFwKNdykTDMFbezaXyh2cvKyiMhpPvNVk3zJUH4ony2Vw1JhTkJj1" ], "script": "base64:AAIDAAAAAAAAAAAAAAAWAAAAAA1jdXN0b21Bc3NldElkAQAAACDHT02XokEj7/O6zZye+50fPv8ZW76RdKThS+dgI5SAHgAAAAAOb3duZXJQdWJsaWNLZXkBAAAAIImDrkvEuDkWcJajYnRKovr9H9crxMS9jTmQ2B8lKfQJAAAAAAxvd25lckFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAADm93bmVyUHVibGljS2V5AAAAABJvd25lckFkZHJlc3NTdHJpbmcCAAAAIzNOQkNlNGRjd2g2a2E5Wm1HRkg2cjF6M2tRUjVCUHl3bk02AAAAABFhY2NvdW50VGhhdEFsbG93cwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVMYbTDAWhUaVMk5pP6sw+hs730/Z1xCPOwAAAAALYXNzZXREaWdpdHMAAAAAAAAPQkAAAAAAEHN1bUFjY291bnRBc3NldHMAAAAAAB3NZQAAAAAADGlzc3VlckFzc2V0cwAAAAAAAAAAAAAAAAAKc3RhcnRCbG9jawAAAAAAAAjn3QAAAAASaW5jcmVhc2VQcmljZUJsb2NrAAAAAAAACPKTAAAAAAhlbmRCbG9jawAA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RLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAASa2V5U3VtQXNzZXRzUHJlZml4BQAAAApjdXJyZW50S2V5AAAAAAAAAAAABQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1jdXJyZW50QW1vdW50BQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAc9z46l", "chainId": 84, "height": 583646, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'ER2GYGBZvcQaPq9mL6HA3PeabqhYF8z7Z6EouisRbFSm' | |
5 | + | ||
6 | + | let b = base58'AFoKCcwU9Nn7vbHiAaEPBpxhKJDoFxTHHfg1ytKth6JC' | |
7 | + | ||
8 | + | let c = addressFromPublicKey(b) | |
9 | + | ||
10 | + | let d = "3NBCe4dcwh6ka9ZmGFH6r1z3kQR5BPywnM6" | |
11 | + | ||
12 | + | let e = Address(base58'3N7yaGaFS8BvgRrc9trhNy7v5H4qCcxW3Fp') | |
13 | + | ||
14 | + | let f = 1000000 | |
15 | + | ||
16 | + | let g = 500000000 | |
17 | + | ||
18 | + | let h = 0 | |
19 | + | ||
20 | + | let i = 583645 | |
21 | + | ||
22 | + | let j = 586387 | |
23 | + | ||
24 | + | let k = 586387 | |
25 | + | ||
26 | + | let l = 500000000 | |
27 | + | ||
28 | + | let m = 500000000 | |
29 | + | ||
30 | + | let n = 10000000000 | |
31 | + | ||
32 | + | let o = 250000000000 | |
33 | + | ||
34 | + | let p = "sumAmount " | |
35 | + | ||
36 | + | let q = "paidAmount " | |
37 | + | ||
38 | + | let r = "sumAssets " | |
39 | + | ||
40 | + | let s = "allow " | |
41 | + | ||
42 | + | let t = "assets" | |
43 | + | ||
44 | + | let u = "waves" | |
45 | + | ||
46 | + | let v = "issuer" | |
47 | + | ||
48 | + | @Callable(w) | |
49 | + | func deposit () = { | |
50 | + | let x = if ((j > height)) | |
51 | + | then l | |
52 | + | else m | |
53 | + | let y = { | |
54 | + | let z = getInteger(this, u) | |
55 | + | if ($isInstanceOf(z, "Int")) | |
56 | + | then { | |
57 | + | let A = z | |
58 | + | A | |
59 | + | } | |
60 | + | else 0 | |
61 | + | } | |
62 | + | if ((i > height)) | |
63 | + | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString(k))) | |
64 | + | else if (if ((height > k)) | |
65 | + | then true | |
66 | + | else (y >= o)) | |
67 | + | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
68 | + | else { | |
69 | + | let B = { | |
70 | + | let z = w.payment | |
71 | + | if ($isInstanceOf(z, "AttachedPayment")) | |
72 | + | then { | |
73 | + | let C = z | |
74 | + | let D = C.assetId | |
75 | + | if ($isInstanceOf(D, "ByteVector")) | |
76 | + | then { | |
77 | + | let E = D | |
78 | + | throw("Waves only") | |
79 | + | } | |
80 | + | else C.amount | |
81 | + | } | |
82 | + | else throw("Payment must be attached") | |
83 | + | } | |
84 | + | let F = toBase58String(w.caller.bytes) | |
85 | + | let G = { | |
86 | + | let z = getBoolean(e, (s + F)) | |
87 | + | if ($isInstanceOf(z, "Boolean")) | |
88 | + | then { | |
89 | + | let A = z | |
90 | + | A | |
91 | + | } | |
92 | + | else false | |
93 | + | } | |
94 | + | if ((G == false)) | |
95 | + | then throw("Your account has no right to send funds.") | |
96 | + | else { | |
97 | + | let H = { | |
98 | + | let z = getInteger(this, t) | |
99 | + | if ($isInstanceOf(z, "Int")) | |
100 | + | then { | |
101 | + | let A = z | |
102 | + | A | |
103 | + | } | |
104 | + | else g | |
105 | + | } | |
106 | + | if ((0 > (H - ((B * f) / x)))) | |
107 | + | then throw((("Payment is too big. Maximum possible payment is " + toString(((H * x) / f))) + " wavelet")) | |
108 | + | else { | |
109 | + | let I = { | |
110 | + | let z = getInteger(this, (p + F)) | |
111 | + | if ($isInstanceOf(z, "Int")) | |
112 | + | then { | |
113 | + | let A = z | |
114 | + | A | |
115 | + | } | |
116 | + | else 0 | |
117 | + | } | |
118 | + | let J = (I + B) | |
119 | + | let K = { | |
120 | + | let z = getInteger(this, (r + F)) | |
121 | + | if ($isInstanceOf(z, "Int")) | |
122 | + | then { | |
123 | + | let A = z | |
124 | + | A | |
125 | + | } | |
126 | + | else 0 | |
127 | + | } | |
128 | + | let L = (K + ((B * f) / x)) | |
129 | + | let M = (H - ((B * f) / x)) | |
130 | + | let N = (y + B) | |
131 | + | WriteSet([DataEntry((p + F), J), DataEntry((r + F), L), DataEntry(t, M), DataEntry(u, N)]) | |
132 | + | } | |
133 | + | } | |
134 | + | } | |
135 | + | } | |
136 | + | ||
137 | + | ||
138 | + | ||
139 | + | @Callable(w) | |
140 | + | func withdrawal () = { | |
141 | + | let F = toBase58String(w.caller.bytes) | |
142 | + | let K = { | |
143 | + | let z = getInteger(this, (r + F)) | |
144 | + | if ($isInstanceOf(z, "Int")) | |
145 | + | then { | |
146 | + | let A = z | |
147 | + | A | |
148 | + | } | |
149 | + | else 0 | |
150 | + | } | |
151 | + | let I = { | |
152 | + | let z = getInteger(this, (p + F)) | |
153 | + | if ($isInstanceOf(z, "Int")) | |
154 | + | then { | |
155 | + | let A = z | |
156 | + | A | |
157 | + | } | |
158 | + | else 0 | |
159 | + | } | |
160 | + | let y = { | |
161 | + | let z = getInteger(this, u) | |
162 | + | if ($isInstanceOf(z, "Int")) | |
163 | + | then { | |
164 | + | let A = z | |
165 | + | A | |
166 | + | } | |
167 | + | else 0 | |
168 | + | } | |
169 | + | let H = { | |
170 | + | let z = getInteger(this, t) | |
171 | + | if ($isInstanceOf(z, "Int")) | |
172 | + | then { | |
173 | + | let A = z | |
174 | + | A | |
175 | + | } | |
176 | + | else 0 | |
177 | + | } | |
178 | + | if (!(if ((height > k)) | |
179 | + | then true | |
180 | + | else (y >= o))) | |
181 | + | then throw(("The Tokensale end on block " + toString(k))) | |
182 | + | else if (if ((F == d)) | |
183 | + | then (y >= n) | |
184 | + | else false) | |
185 | + | then { | |
186 | + | let O = { | |
187 | + | let z = getInteger(this, v) | |
188 | + | if ($isInstanceOf(z, "Int")) | |
189 | + | then { | |
190 | + | let A = z | |
191 | + | A | |
192 | + | } | |
193 | + | else 0 | |
194 | + | } | |
195 | + | if ((O == 0)) | |
196 | + | then ScriptResult(WriteSet([DataEntry(v, (H + h))]), TransferSet([ScriptTransfer(c, (H + h), a), ScriptTransfer(c, y, unit)])) | |
197 | + | else throw("The issuer has already taken its share!") | |
198 | + | } | |
199 | + | else if ((I == 0)) | |
200 | + | then throw("Don't have money") | |
201 | + | else if ((y >= n)) | |
202 | + | then ScriptResult(WriteSet([DataEntry((p + F), 0), DataEntry((r + F), 0)]), TransferSet([ScriptTransfer(w.caller, K, a)])) | |
203 | + | else ScriptResult(WriteSet([DataEntry((p + F), 0), DataEntry((r + F), 0)]), TransferSet([ScriptTransfer(w.caller, I, unit)])) | |
204 | + | } | |
205 | + | ||
206 | + | ||
207 | + | @Verifier(P) | |
208 | + | func Q () = { | |
209 | + | let z = P | |
210 | + | false | |
211 | + | } | |
212 | + |
github/deemru/w8io/026f985 20.61 ms ◑