tx · 5FyQsC12BfFsx96JUTAy3TLcY3RYk52C21Qd4RCTGHbc 3MppEfG3tMNGWnVynfBMQiyZ1fKNVF1cY7r: -0.01400000 Waves 2019.07.12 11:53 [582296] smart account 3MppEfG3tMNGWnVynfBMQiyZ1fKNVF1cY7r > SELF 0.00000000 Waves
{ "type": 13, "id": "5FyQsC12BfFsx96JUTAy3TLcY3RYk52C21Qd4RCTGHbc", "fee": 1400000, "feeAssetId": null, "timestamp": 1562921646928, "version": 1, "sender": "3MppEfG3tMNGWnVynfBMQiyZ1fKNVF1cY7r", "senderPublicKey": "AJLvFkHtXQqS6rPtUiKsZxedaJhUE7282hinDVG9M2Kw", "proofs": [ "226EW39oGYQUjWQwGH8xeJnGfatpPjPrxBwjrDTAjGVDKYLfoM4uhUpDrRLqTShHmi5id1ZqXmNtowvT3TGJFhN7" ], "script": "base64:AAIDAAAAAAAAAAAAAAAWAAAAAA1jdXN0b21Bc3NldElkAQAAACDpKWdQspgFg6Ub1xAYv2s0+1MNTv8OO/tYl8aVJMLOUQAAAAAOb3duZXJQdWJsaWNLZXkBAAAAIAWySJInNlSTzryJhuNl6UOqmcxr6CXIHGfN2vPOqvU0AAAAAAxvd25lckFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAADm93bmVyUHVibGljS2V5AAAAABJvd25lckFkZHJlc3NTdHJpbmcCAAAAIzNONTFXeTM3UUhXOXpZOHZNY0x5aXdLeFdLeGNjUThhMnJLAAAAABFhY2NvdW50VGhhdEFsbG93cwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVMYbTDAWhUaVMk5pP6sw+hs730/Z1xCPOwAAAAALYXNzZXREaWdpdHMAAAAAAAAPQkAAAAAAEHN1bUFjY291bnRBc3NldHMAAAAAAlQL5AAAAAAADGlzc3VlckFzc2V0cwAAAAAAAAAAAAAAAAAKc3RhcnRCbG9jawAAAAAAAAjijwAAAAASaW5jcmVhc2VQcmljZUJsb2NrAAAAAAAACRrOAA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aXgFAAAACmN1cnJlbnRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAASa2V5U3VtQXNzZXRzUHJlZml4BQAAAApjdXJyZW50S2V5AAAAAAAAAAAABQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1jdXJyZW50QW1vdW50BQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAew0SAg", "chainId": 84, "height": 582296, "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'GhAcSmukkMKq1mW847dKcHne83EnEoahxX2YsFjP2xde' | |
5 | + | ||
6 | + | let b = base58'PEiNYrtNyo18NYLETTWFrX5e3B1gzW7yHNoK6u17mQX' | |
7 | + | ||
8 | + | let c = addressFromPublicKey(b) | |
9 | + | ||
10 | + | let d = "3N51Wy37QHW9zY8vMcLyiwKxWKxccQ8a2rK" | |
11 | + | ||
12 | + | let e = Address(base58'3N7yaGaFS8BvgRrc9trhNy7v5H4qCcxW3Fp') | |
13 | + | ||
14 | + | let f = 1000000 | |
15 | + | ||
16 | + | let g = 10000000000 | |
17 | + | ||
18 | + | let h = 0 | |
19 | + | ||
20 | + | let i = 582287 | |
21 | + | ||
22 | + | let j = 596686 | |
23 | + | ||
24 | + | let k = 596686 | |
25 | + | ||
26 | + | let l = 100000000 | |
27 | + | ||
28 | + | let m = 100000000 | |
29 | + | ||
30 | + | let n = 10000000000 | |
31 | + | ||
32 | + | let o = 1000000000000 | |
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 21.28 ms ◑