tx · G1FabNFx6xXqDXoaaPV2rFTszc4EegUjtqWdgZEJekpW 3MsQxrV4mghLduXDMBJjxnRedAJovdG6Wsy: -0.01000000 Waves 2019.11.16 00:01 [766734] smart account 3MsQxrV4mghLduXDMBJjxnRedAJovdG6Wsy > SELF 0.00000000 Waves
{ "type": 13, "id": "G1FabNFx6xXqDXoaaPV2rFTszc4EegUjtqWdgZEJekpW", "fee": 1000000, "feeAssetId": null, "timestamp": 1573851679751, "version": 1, "sender": "3MsQxrV4mghLduXDMBJjxnRedAJovdG6Wsy", "senderPublicKey": "GvezjaWojsNfkyqTTCQjayzbzp5wbvp6JShxzNDaKFsJ", "proofs": [ "3bJV6HaUfsB1n2wuEwJQN6pwXaigdy32JJXjSs5Xem5RvcG856hpxEDRwzKbJQkjbtcAtDaRgyufy7VRv17pQgN9" ], "script": "base64:AAIDAAAAAAAAABAIARIAEgQKAgEIEgQKAgEBAAAAIwEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAAAxnZXRCb29sQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAA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ZXRQcm9maXQAAAABBQAAAA9wcm9maXRTeW5jSW5kZXgFAAAAD1BFUkNFTlRBQ0NVUkFDWQkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAA9nZXRJc0NsYWltZWRLZXkAAAACBQAAAAdhY2NvdW50BQAAAA9wcm9maXRTeW5jSW5kZXgGBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAAdhY2NvdW50BQAAAAZwcm9maXQFAAAAD25ldXRyaW5vQXNzZXRJZAUAAAADbmlsAAAAAKVHJrc=", "chainId": 84, "height": 766734, "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 | + | func a (b) = { | |
5 | + | let c = getInteger(this, b) | |
6 | + | if ($isInstanceOf(c, "Int")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else 0 | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | func e (b) = { | |
16 | + | let c = getString(this, b) | |
17 | + | if ($isInstanceOf(c, "String")) | |
18 | + | then { | |
19 | + | let d = c | |
20 | + | d | |
21 | + | } | |
22 | + | else "" | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | func f (b) = { | |
27 | + | let c = getBoolean(this, b) | |
28 | + | if ($isInstanceOf(c, "Boolean")) | |
29 | + | then { | |
30 | + | let d = c | |
31 | + | d | |
32 | + | } | |
33 | + | else false | |
34 | + | } | |
35 | + | ||
36 | + | ||
37 | + | func g (h,b) = { | |
38 | + | let c = getInteger(addressFromStringValue(h), b) | |
39 | + | if ($isInstanceOf(c, "Int")) | |
40 | + | then { | |
41 | + | let d = c | |
42 | + | d | |
43 | + | } | |
44 | + | else 0 | |
45 | + | } | |
46 | + | ||
47 | + | ||
48 | + | func i (h,b) = { | |
49 | + | let c = getString(addressFromStringValue(h), b) | |
50 | + | if ($isInstanceOf(c, "String")) | |
51 | + | then { | |
52 | + | let d = c | |
53 | + | d | |
54 | + | } | |
55 | + | else "" | |
56 | + | } | |
57 | + | ||
58 | + | ||
59 | + | let j = "_" | |
60 | + | ||
61 | + | let k = 10000 | |
62 | + | ||
63 | + | let l = "neutrino_asset_id" | |
64 | + | ||
65 | + | let m = "neutrino_contract" | |
66 | + | ||
67 | + | let n = "node_address" | |
68 | + | ||
69 | + | let o = "rpd_balance" | |
70 | + | ||
71 | + | let p = "rpd_sync_index" | |
72 | + | ||
73 | + | let q = "rpd_profit" | |
74 | + | ||
75 | + | let r = "balance_history" | |
76 | + | ||
77 | + | let s = "is_claimed" | |
78 | + | ||
79 | + | func t (u) = ((r + "_") + u) | |
80 | + | ||
81 | + | ||
82 | + | func v (u,w) = ((((o + "_") + w) + "_") + u) | |
83 | + | ||
84 | + | ||
85 | + | func x (u,y,w) = ((v(u, w) + "_") + toString(y)) | |
86 | + | ||
87 | + | ||
88 | + | func z (u,y) = ((((s + "_") + u) + "_") + toString(y)) | |
89 | + | ||
90 | + | ||
91 | + | func A (w) = ((o + "_") + w) | |
92 | + | ||
93 | + | ||
94 | + | func B (y,w) = ((((o + "_") + w) + "_") + toString(y)) | |
95 | + | ||
96 | + | ||
97 | + | func C (y) = ((q + "_") + toString(y)) | |
98 | + | ||
99 | + | ||
100 | + | let D = e(n) | |
101 | + | ||
102 | + | let E = e(m) | |
103 | + | ||
104 | + | let F = fromBase58String(i(E, l)) | |
105 | + | ||
106 | + | let G = g(E, p) | |
107 | + | ||
108 | + | func H (y,w) = g(E, B(y, w)) | |
109 | + | ||
110 | + | ||
111 | + | func I (y) = g(E, C(y)) | |
112 | + | ||
113 | + | ||
114 | + | func J (w) = a(A(w)) | |
115 | + | ||
116 | + | ||
117 | + | func K (u,w) = a(v(u, w)) | |
118 | + | ||
119 | + | ||
120 | + | func L (u,y,w) = a(x(u, y, w)) | |
121 | + | ||
122 | + | ||
123 | + | func M (u) = e(t(u)) | |
124 | + | ||
125 | + | ||
126 | + | func N (u,y) = f(z(u, y)) | |
127 | + | ||
128 | + | ||
129 | + | func O (y) = (toString(y) + j) | |
130 | + | ||
131 | + | ||
132 | + | func P (Q,R) = (Q + R) | |
133 | + | ||
134 | + | ||
135 | + | @Callable(S) | |
136 | + | func lockNeutrino () = { | |
137 | + | let T = extract(S.payment) | |
138 | + | if ((T.assetId != F)) | |
139 | + | then throw("can use neutrino") | |
140 | + | else { | |
141 | + | let U = toString(S.caller) | |
142 | + | let V = toBase58String(value(T.assetId)) | |
143 | + | let W = (K(U, V) + T.amount) | |
144 | + | let X = M(U) | |
145 | + | let Q = split(X, j) | |
146 | + | let Y = (size(Q) - 2) | |
147 | + | let Z = if (if ((X != "")) | |
148 | + | then (parseIntValue(Q[Y]) == G) | |
149 | + | else false) | |
150 | + | then X | |
151 | + | else P(X, O(G)) | |
152 | + | WriteSet([DataEntry(A(V), (J(V) + T.amount)), DataEntry(v(U, V), W), DataEntry(x(U, G, V), W), DataEntry(t(U), Z)]) | |
153 | + | } | |
154 | + | } | |
155 | + | ||
156 | + | ||
157 | + | ||
158 | + | @Callable(S) | |
159 | + | func unlockNeutrino (aa,V) = { | |
160 | + | let U = toString(S.caller) | |
161 | + | let w = fromBase58String(V) | |
162 | + | let W = (K(U, V) - aa) | |
163 | + | if ((0 > W)) | |
164 | + | then throw("invalid amount") | |
165 | + | else if ((w != F)) | |
166 | + | then throw("can use neutrino") | |
167 | + | else { | |
168 | + | let X = M(U) | |
169 | + | let Q = split(X, j) | |
170 | + | let Y = (size(Q) - 2) | |
171 | + | let Z = if (if ((X != "")) | |
172 | + | then (parseIntValue(Q[Y]) == G) | |
173 | + | else false) | |
174 | + | then X | |
175 | + | else P(X, O(G)) | |
176 | + | ScriptResult(WriteSet([DataEntry(A(V), (J(V) - aa)), DataEntry(v(U, V), W), DataEntry(x(U, G, V), W), DataEntry(t(U), Z)]), TransferSet([ScriptTransfer(addressFromStringValue(U), aa, F)])) | |
177 | + | } | |
178 | + | } | |
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | @Callable(S) | |
183 | + | func withdraw (ab,ac) = { | |
184 | + | let U = toString(S.caller) | |
185 | + | let X = M(U) | |
186 | + | let Q = split(X, j) | |
187 | + | let ad = parseIntValue(Q[ac]) | |
188 | + | if (N(U, ab)) | |
189 | + | then throw(("account is claimed rpd_count:" + toString(ab))) | |
190 | + | else if (if ((ad > ab)) | |
191 | + | then true | |
192 | + | else if ((size(Q) > (ac + 2))) | |
193 | + | then (ab >= parseIntValue(Q[(ac + 1)])) | |
194 | + | else false) | |
195 | + | then throw("invalid history index") | |
196 | + | else { | |
197 | + | let ae = toBase58String(F) | |
198 | + | let W = L(U, ad, ae) | |
199 | + | let af = ((W * k) / H(ab, ae)) | |
200 | + | let ag = ((af * I(ab)) / k) | |
201 | + | ScriptResult(WriteSet([DataEntry(z(U, ab), true)]), TransferSet([ScriptTransfer(addressFromStringValue(U), ag, F)])) | |
202 | + | } | |
203 | + | } | |
204 | + | ||
205 | + |
github/deemru/w8io/026f985 24.78 ms ◑