tx · DNW9BGWX21mm6EJMpLnYHGNQNSTAprq333SLJ91z4sYp

3N3wgpZuw6MWRgf7XouSYL26EZSHCBYKgd6:  -0.10000000 Waves

2020.04.01 11:57 [934866] smart account 3N3wgpZuw6MWRgf7XouSYL26EZSHCBYKgd6 > SELF 0.00000000 Waves

{ "type": 13, "id": "DNW9BGWX21mm6EJMpLnYHGNQNSTAprq333SLJ91z4sYp", "fee": 10000000, "feeAssetId": null, "timestamp": 1585731511234, "version": 1, "sender": "3N3wgpZuw6MWRgf7XouSYL26EZSHCBYKgd6", "senderPublicKey": "9ZPbyU1ZXeXBHtwUPjdeVo3xNdu7TqRN7S81nrZznxs3", "proofs": [ "4vLmBXSzC48f1pGurAkVd3waYVcwLf5MzMoJEEcbFdUWaWm1fUzns24JmvtAC29zddn5MWcwVDzSYYKMRc24NRw" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAANwEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABZnZXRCb29sQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAQAAABhnZXRTdHJpbmdCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2F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m9uZEFtb3VudAMJAABnAAAAAgUAAAAPZGVmaWNpdFBvc2l0aXZlBQAAAAtib25kQmFsYW5jZQUAAAALYm9uZEJhbGFuY2UFAAAAD2RlZmljaXRQb3NpdGl2ZQQAAAAMcmV0dXJuQW1vdW50AwkAAGcAAAACBQAAAA9kZWZpY2l0UG9zaXRpdmUFAAAAC2JvbmRCYWxhbmNlAAAAAAAAAAAACQAAZQAAAAIFAAAAC2JvbmRCYWxhbmNlBQAAAA9kZWZpY2l0UG9zaXRpdmUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADUZpcnN0T3JkZXJLZXkCAAAAB3Rlc3QwMDYJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABFnZXRPcmRlclN0YXR1c0tleQAAAAEFAAAACmZpcnN0T3JkZXICAAAAB3Rlc3QtLTYJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkBAAAAEWdldE9yZGVyU3RhdHVzS2V5AAAAAQUAAAAKZmlyc3RPcmRlcgIAAAAHX2luZGV4XwIAAAABNgUAAAADbmlsAAAAAF1tQQU=", "chainId": 84, "height": 934866, "spentComplexity": 0 } View: original | compacted Prev: 6CDmhtGKHay8qYLsFn4fJgJWsUMFTQH4nuYATWwcjUZi Next: GSixjZM77jD9t73PGiGGDBwjzCF9F7UB2yJvVsCzyTTu Diff:
OldNewDifferences
188188 let ap = if ((an >= am))
189189 then 0
190190 else (am - an)
191- WriteSet([DataEntry(A, "test005"), DataEntry(H(ac), "test--5"), DataEntry((H(ac) + "index"), "5")])
191+ WriteSet([DataEntry(A, "test006"), DataEntry(H(ac), "test--6"), DataEntry((H(ac) + "_index_"), "6")])
192192 }
193193
194194
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = getInteger(this, b)
66 if ($isInstanceOf(c, "Int"))
77 then {
88 let d = c
99 d
1010 }
1111 else 0
1212 }
1313
1414
1515 func e (b) = {
1616 let c = getString(this, b)
1717 if ($isInstanceOf(c, "String"))
1818 then {
1919 let d = c
2020 d
2121 }
2222 else ""
2323 }
2424
2525
2626 func f (g,b) = {
2727 let c = getBoolean(g, b)
2828 if ($isInstanceOf(c, "Boolean"))
2929 then {
3030 let d = c
3131 d
3232 }
3333 else false
3434 }
3535
3636
3737 func h (g,b) = {
3838 let c = getString(g, b)
3939 if ($isInstanceOf(c, "String"))
4040 then {
4141 let d = c
4242 d
4343 }
4444 else ""
4545 }
4646
4747
4848 func i (g,b) = {
4949 let c = getInteger(g, b)
5050 if ($isInstanceOf(c, "Int"))
5151 then {
5252 let d = c
5353 d
5454 }
5555 else 0
5656 }
5757
5858
5959 let j = 100000000
6060
6161 let k = 1000000
6262
6363 let l = 1000
6464
6565 let m = (10 * j)
6666
6767 let n = 100
6868
6969 let o = "canceled"
7070
7171 let p = "new"
7272
7373 let q = "filled"
7474
7575 let r = "neutrino_contract"
7676
7777 let s = "price"
7878
7979 let t = "bond_asset_id"
8080
8181 let u = "neutrino_asset_id"
8282
8383 let v = "control_contract"
8484
8585 let w = "balance_lock_"
8686
8787 let x = (w + "waves")
8888
8989 let y = (w + "neutrino")
9090
9191 let z = "liquidation_contract"
9292
9393 let A = "order_first"
9494
9595 func B (C) = ("debug_order_roi_" + C)
9696
9797
9898 func D (C) = ("order_price_" + C)
9999
100100
101101 func E (C) = ("order_total_" + C)
102102
103103
104104 func F (C) = ("order_owner_" + C)
105105
106106
107107 func G (C) = ("order_height_" + C)
108108
109109
110110 func H (C) = ("order_status_" + C)
111111
112112
113113 func I (C) = ("order_filled_total_" + C)
114114
115115
116116 func J (C) = ("order_prev_" + C)
117117
118118
119119 func K (C) = ("order_next_" + C)
120120
121121
122122 func L (M,N) = fraction(fraction(M, 100, N), j, k)
123123
124124
125125 func O (M,N) = fraction(fraction(M, N, 100), k, j)
126126
127127
128128 func P (M,N) = O(M, N)
129129
130130
131131 func Q (M,N) = L(M, N)
132132
133133
134134 let R = addressFromStringValue("3PC9BfRwJWWiw9AREE2B3eWzCks3CYtg4yo")
135135
136136 let S = addressFromStringValue("3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP")
137137
138138 let T = addressFromStringValue("3P4PCxsJqMzQBALo8zANHtBDZRRquobHQp7")
139139
140140 let U = fromBase58String("DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p")
141141
142142 let V = fromBase58String("6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g")
143143
144144 let W = f(S, "is_blocked")
145145
146146 let X = i(S, s)
147147
148148 let Y = i(R, y)
149149
150150 let Z = (wavesBalance(R) - i(R, x))
151151
152152 let aa = (((Y + extract(assetInfo(U)).quantity) - assetBalance(R, U)) - assetBalance(T, U))
153153
154154 let ab = (aa - O(Z, X))
155155
156156 let ac = e(A)
157157
158158 func ad (ae) = a(D(ae))
159159
160160
161161 func af (ae) = a(E(ae))
162162
163163
164164 func ag (ae) = e(F(ae))
165165
166166
167167 func ah (ae) = e(H(ae))
168168
169169
170170 func ai (ae) = a(I(ae))
171171
172172
173173 func aj (ae) = e(J(ae))
174174
175175
176176 func ak (ae) = e(K(ae))
177177
178178
179179 @Callable(al)
180180 func sellBond () = {
181181 let am = assetBalance(this, V)
182182 let an = if ((0 >= ab))
183183 then 0
184184 else ab
185185 let ao = if ((an >= am))
186186 then am
187187 else an
188188 let ap = if ((an >= am))
189189 then 0
190190 else (am - an)
191- WriteSet([DataEntry(A, "test005"), DataEntry(H(ac), "test--5"), DataEntry((H(ac) + "index"), "5")])
191+ WriteSet([DataEntry(A, "test006"), DataEntry(H(ac), "test--6"), DataEntry((H(ac) + "_index_"), "6")])
192192 }
193193
194194

github/deemru/w8io/169f3d6 
49.49 ms